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 = "2.0.0";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "asana";
21 repo = "python-asana";
22 rev = "refs/tags/v${version}";
23 sha256 = "sha256-sY7M446krFIcyWkN2pk9FTa+VTXEOZ6xnHePx35e8IY=";
24 };
25
26 propagatedBuildInputs = [
27 requests
28 requests-oauthlib
29 six
30 ];
31
32 checkInputs = [
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 license = licenses.mit;
45 maintainers = with maintainers; [ ];
46 };
47}