1{
2 lib,
3 buildPythonPackage,
4 certifi,
5 fetchFromGitHub,
6 pytestCheckHook,
7 python-dateutil,
8 python-dotenv,
9 pythonOlder,
10 setuptools,
11 six,
12 urllib3,
13}:
14
15buildPythonPackage rec {
16 pname = "asana";
17 version = "5.2.1";
18 pyproject = true;
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchFromGitHub {
23 owner = "asana";
24 repo = "python-asana";
25 tag = "v${version}";
26 hash = "sha256-4kvMOg8Iou9C+tVIzp+3tc7E2WfkHjrxaMa789ku930=";
27 };
28
29 build-system = [ setuptools ];
30
31 dependencies = [
32 certifi
33 six
34 python-dateutil
35 python-dotenv
36 urllib3
37 ];
38
39 nativeCheckInputs = [ pytestCheckHook ];
40
41 pythonImportsCheck = [ "asana" ];
42
43 disabledTestPaths = [
44 # Tests require network access
45 "build_tests/"
46 ];
47
48 meta = with lib; {
49 description = "Python client library for Asana";
50 homepage = "https://github.com/asana/python-asana";
51 changelog = "https://github.com/Asana/python-asana/releases/tag/${src.tag}";
52 license = licenses.mit;
53 maintainers = [ ];
54 };
55}