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