2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-09-19 14:19:46 +00:00
|
|
|
certifi,
|
2024-06-05 15:53:02 +00:00
|
|
|
fetchFromGitHub,
|
2024-09-19 14:19:46 +00:00
|
|
|
pytestCheckHook,
|
|
|
|
python-dateutil,
|
|
|
|
python-dotenv,
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
six,
|
|
|
|
urllib3,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "asana";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "5.0.10";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "asana";
|
|
|
|
repo = "python-asana";
|
2024-01-02 11:29:13 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-nuBvRqrs00OIY3UzN7bF5dB15TZqeE43o1BIpBaJZcQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
certifi
|
2023-11-16 04:20:00 +00:00
|
|
|
six
|
2024-05-15 15:35:15 +00:00
|
|
|
python-dateutil
|
2024-09-19 14:19:46 +00:00
|
|
|
python-dotenv
|
2024-05-15 15:35:15 +00:00
|
|
|
urllib3
|
2022-04-27 09:35:20 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "asana" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Tests require network access
|
|
|
|
"build_tests/"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python client library for Asana";
|
|
|
|
homepage = "https://github.com/asana/python-asana";
|
2022-12-28 21:21:41 +00:00
|
|
|
changelog = "https://github.com/Asana/python-asana/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|