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