depot/third_party/nixpkgs/pkgs/development/python-modules/asana/default.nix

48 lines
812 B
Nix
Raw Normal View History

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