diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-11-09 01:08:07 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-11-09 01:08:07 +0100 |
commit | 1573e35ba0cb5b85dac35aa827ed9bad4775dc15 (patch) | |
tree | 9c8b4fd1ec2e836aaf7518a055c20693ae70c8c5 /pkgs/development/python-modules/natsort | |
parent | f329d721575dcd0fc4c6a5a00082a4c63b341f46 (diff) |
python3Packages.natsort: 7.1.1 -> 8.0.0
Diffstat (limited to 'pkgs/development/python-modules/natsort')
-rw-r--r-- | pkgs/development/python-modules/natsort/default.nix | 53 |
1 files changed, 26 insertions, 27 deletions
diff --git a/pkgs/development/python-modules/natsort/default.nix b/pkgs/development/python-modules/natsort/default.nix index e7a2a6808a8a0..0aad9299f5b92 100644 --- a/pkgs/development/python-modules/natsort/default.nix +++ b/pkgs/development/python-modules/natsort/default.nix @@ -1,48 +1,47 @@ { lib , buildPythonPackage -, pythonOlder +, fastnumbers , fetchPypi -, pytest -, pytest-cov -, pytest-mock -, hypothesis , glibcLocales -, pathlib ? null -, isPy3k +, hypothesis +, PyICU +, pytest-mock +, pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "natsort"; version = "7.1.1"; + format = "setuptools"; - checkInputs = [ - pytest - pytest-cov - pytest-mock - hypothesis - glibcLocales - ] - # pathlib was made part of standard library in 3.5: - ++ (lib.optionals (pythonOlder "3.4") [ pathlib ]); + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; sha256 = "00c603a42365830c4722a2eb7663a25919551217ec09a243d3399fa8dd4ac403"; }; - # Does not support Python 2 - disabled = !isPy3k; + propagatedBuildInputs = [ + fastnumbers + PyICU + ]; + + checkInputs = [ + glibcLocales + hypothesis + pytest-mock + pytestCheckHook + ]; - # testing based on project's tox.ini - # natsort_keygen has pytest mock issues - checkPhase = '' - pytest --doctest-modules natsort - pytest --ignore=tests/test_natsort_keygen.py - ''; + pythonImportsCheck = [ + "natsort" + ]; - meta = { - description = "Natural sorting for python"; + meta = with lib; { + description = "Natural sorting for Python"; homepage = "https://github.com/SethMMorton/natsort"; - license = lib.licenses.mit; + license = licenses.mit; + maintainers = with maintainers; [ ]; }; } |