nixpkgs-suyu/pkgs/development/python-modules/asana/default.nix
2023-12-18 10:32:47 +00:00

48 lines
907 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, requests
, requests-oauthlib
, responses
, six
}:
buildPythonPackage rec {
pname = "asana";
version = "5.0.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "asana";
repo = "python-asana";
rev = "refs/tags/v${version}";
hash = "sha256-9F63DvwMh9NwlTqFuhiXfgRRRxAFjjRYmYzsuOhlQJ0=";
};
propagatedBuildInputs = [
requests
requests-oauthlib
six
];
nativeCheckInputs = [
pytestCheckHook
responses
];
pythonImportsCheck = [
"asana"
];
meta = with lib; {
description = "Python client library for Asana";
homepage = "https://github.com/asana/python-asana";
changelog = "https://github.com/Asana/python-asana/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}