2017-05-14 18:05:50 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-11-09 00:08:07 +00:00
|
|
|
, fastnumbers
|
2017-05-14 18:05:50 +00:00
|
|
|
, fetchPypi
|
|
|
|
, glibcLocales
|
2021-11-09 00:08:07 +00:00
|
|
|
, hypothesis
|
|
|
|
, PyICU
|
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2017-05-14 18:05:50 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "natsort";
|
2022-01-09 00:04:28 +00:00
|
|
|
version = "8.0.2";
|
2021-11-09 00:08:07 +00:00
|
|
|
format = "setuptools";
|
2017-05-14 18:05:50 +00:00
|
|
|
|
2021-11-09 00:08:07 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2017-05-14 18:05:50 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-09 00:04:28 +00:00
|
|
|
hash = "sha256-/rh+DOHcH48/IeGKhSFseQ50bXal/2iJVjOUYF9QSis=";
|
2017-05-14 18:05:50 +00:00
|
|
|
};
|
|
|
|
|
2021-11-09 00:08:07 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
fastnumbers
|
|
|
|
PyICU
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
glibcLocales
|
|
|
|
hypothesis
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-06-19 09:20:35 +00:00
|
|
|
|
2021-11-09 00:08:07 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"natsort"
|
|
|
|
];
|
2017-05-14 18:05:50 +00:00
|
|
|
|
2021-11-09 00:08:07 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Natural sorting for Python";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/SethMMorton/natsort";
|
2021-11-09 00:08:07 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ];
|
2017-05-14 18:05:50 +00:00
|
|
|
};
|
|
|
|
}
|