Files
nixpkgs/pkgs/development/python-modules/asana/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

56 lines
1014 B
Nix

{
lib,
buildPythonPackage,
certifi,
fetchFromGitHub,
pytestCheckHook,
python-dateutil,
python-dotenv,
pythonOlder,
setuptools,
six,
urllib3,
}:
buildPythonPackage rec {
pname = "asana";
version = "5.2.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "asana";
repo = "python-asana";
tag = "v${version}";
hash = "sha256-5GgBFZuiQDQXvZECIqY+kXTrUzkuoD8pJGKIg4TD1fw=";
};
build-system = [ setuptools ];
dependencies = [
certifi
six
python-dateutil
python-dotenv
urllib3
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "asana" ];
disabledTestPaths = [
# Tests require network access
"build_tests/"
];
meta = {
description = "Python client library for Asana";
homepage = "https://github.com/asana/python-asana";
changelog = "https://github.com/Asana/python-asana/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = [ ];
};
}