Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 setuptools, 7 certifi, 8 six, 9 python-dateutil, 10 urllib3, 11 pytestCheckHook, 12}: 13 14buildPythonPackage rec { 15 pname = "asana"; 16 version = "5.0.7"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = "asana"; 23 repo = "python-asana"; 24 rev = "refs/tags/v${version}"; 25 hash = "sha256-X6444LU2hcx4Er5N+WbSjgbe2tHjl1y1z5FqZGngiOw="; 26 }; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ 31 certifi 32 six 33 python-dateutil 34 urllib3 35 ]; 36 37 nativeCheckInputs = [ pytestCheckHook ]; 38 39 pythonImportsCheck = [ "asana" ]; 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 = [ ]; 47 }; 48}