nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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 = "0.10.9";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "asana";
21 repo = "python-asana";
22 rev = "v${version}";
23 sha256 = "sha256-9gOkCMY15ChdhiFdzS0TjvWpVTKKEGt7XIcK6EhkSK8=";
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}