159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
55 lines
1 KiB
Nix
55 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
certifi,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
python-dateutil,
|
|
python-dotenv,
|
|
pythonOlder,
|
|
setuptools,
|
|
six,
|
|
urllib3,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "asana";
|
|
version = "5.0.10";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "asana";
|
|
repo = "python-asana";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-nuBvRqrs00OIY3UzN7bF5dB15TZqeE43o1BIpBaJZcQ=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
certifi
|
|
six
|
|
python-dateutil
|
|
python-dotenv
|
|
urllib3
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "asana" ];
|
|
|
|
disabledTestPaths = [
|
|
# Tests require network access
|
|
"build_tests/"
|
|
];
|
|
|
|
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 = [ ];
|
|
};
|
|
}
|