1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6, requests
7, requests-oauthlib
8, responses
9, six
10}:
11
12buildPythonPackage rec {
13 pname = "asana";
14 version = "4.0.11";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "asana";
21 repo = "python-asana";
22 rev = "refs/tags/${version}";
23 hash = "sha256-B98X8ErmoMIpXu4KKvRGgtElPs/va2+UIR+ARUgafgo=";
24 };
25
26 propagatedBuildInputs = [
27 requests
28 requests-oauthlib
29 six
30 ];
31
32 nativeCheckInputs = [
33 pytestCheckHook
34 responses
35 ];
36
37 pythonImportsCheck = [
38 "asana"
39 ];
40
41 meta = with lib; {
42 description = "Python client library for Asana";
43 homepage = "https://github.com/asana/python-asana";
44 changelog = "https://github.com/Asana/python-asana/releases/tag/v${version}";
45 license = licenses.mit;
46 maintainers = with maintainers; [ ];
47 };
48}