mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
47 lines
821 B
Nix
47 lines
821 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, requests-oauthlib
|
|
, responses
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "asana";
|
|
version = "1.0.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "asana";
|
|
repo = "python-asana";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-SbYTLGBCfKbjhyzM5OnVX6kxEMnofwPIyzwuJvYORhw=";
|
|
};
|
|
|
|
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; [ ];
|
|
};
|
|
}
|