diff options
| author | Fabian Affolter <mail@fabian-affolter.ch> | 2022-10-30 19:28:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-30 19:28:11 +0100 |
| commit | 97cba63343af69f0c7fe422e3d5e994d6130cc2d (patch) | |
| tree | f89c69692bb514fe1fab54d93e1fce1dd44b37a2 /pkgs/development/python-modules/python-utils | |
| parent | 2eb47b274f1fab1588dbee2dc77fe41b95401764 (diff) | |
python310Packages.python-utils: disable on older Python releases
- add optional-dependencies
- add pythonImportsCheck
Diffstat (limited to 'pkgs/development/python-modules/python-utils')
| -rw-r--r-- | pkgs/development/python-modules/python-utils/default.nix | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/python-utils/default.nix b/pkgs/development/python-modules/python-utils/default.nix index 2aa5c1d962b1..40e963763f02 100644 --- a/pkgs/development/python-modules/python-utils/default.nix +++ b/pkgs/development/python-modules/python-utils/default.nix @@ -2,14 +2,18 @@ , buildPythonPackage , fetchFromGitHub , loguru -, pytestCheckHook -, six +, pytest-asyncio , pytest-mypy +, pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "python-utils"; version = "3.4.5"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "WoLpH"; @@ -18,20 +22,24 @@ buildPythonPackage rec { hash = "sha256-O/+jvdzzxUFaQdAfUM9p40fPPDNN+stTauCD993HH6Y="; }; - # disable coverage and linting postPatch = '' sed -i '/--cov/d' pytest.ini - sed -i '/--flake8/d' pytest.ini ''; - propagatedBuildInputs = [ - loguru - six - ]; + passthru.optional-dependencies = { + loguru = [ + loguru + ]; + }; checkInputs = [ + pytest-asyncio pytest-mypy pytestCheckHook + ] ++ passthru.optional-dependencies.loguru; + + pythonImportsCheck = [ + "python_utils" ]; pytestFlagsArray = [ @@ -42,5 +50,6 @@ buildPythonPackage rec { description = "Module with some convenient utilities"; homepage = "https://github.com/WoLpH/python-utils"; license = licenses.bsd3; + maintainers = with maintainers; [ ]; }; } |
