mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-16 15:48:16 +00:00
Merge pull request #145148 from fabaff/bump-natsort
python3Packages.natsort: 7.1.1 -> 8.0.0
This commit is contained in:
commit
1a0851d083
44
pkgs/development/python-modules/fastnumbers/default.nix
Normal file
44
pkgs/development/python-modules/fastnumbers/default.nix
Normal file
@ -0,0 +1,44 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fastnumbers
|
||||
, fetchFromGitHub
|
||||
, hypothesis
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, typing-extensions
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fastnumbers";
|
||||
version = "3.2.1";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "SethMMorton";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1v9l5p90y6ygrs0qmgdzxfv2vp1mpfp65snkl9jp6kcy44g3alhp";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
hypothesis
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"fastnumbers"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python module for number conversion";
|
||||
homepage = "https://github.com/SethMMorton/fastnumbers";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -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
|
||||
];
|
||||
|
||||
# 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
|
||||
'';
|
||||
checkInputs = [
|
||||
glibcLocales
|
||||
hypothesis
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Natural sorting for python";
|
||||
pythonImportsCheck = [
|
||||
"natsort"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Natural sorting for Python";
|
||||
homepage = "https://github.com/SethMMorton/natsort";
|
||||
license = lib.licenses.mit;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
|
@ -2658,6 +2658,8 @@ in {
|
||||
inherit python;
|
||||
});
|
||||
|
||||
fastnumbers = callPackage ../development/python-modules/fastnumbers { };
|
||||
|
||||
fastpair = callPackage ../development/python-modules/fastpair { };
|
||||
|
||||
fastparquet = callPackage ../development/python-modules/fastparquet { };
|
||||
|
Loading…
Reference in New Issue
Block a user