nixpkgs/pkgs/development/python-modules/natsort/default.nix
2021-11-09 01:08:07 +01:00

48 lines
798 B
Nix

{ lib
, buildPythonPackage
, fastnumbers
, fetchPypi
, glibcLocales
, hypothesis
, PyICU
, pytest-mock
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "natsort";
version = "7.1.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "00c603a42365830c4722a2eb7663a25919551217ec09a243d3399fa8dd4ac403";
};
propagatedBuildInputs = [
fastnumbers
PyICU
];
checkInputs = [
glibcLocales
hypothesis
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [
"natsort"
];
meta = with lib; {
description = "Natural sorting for Python";
homepage = "https://github.com/SethMMorton/natsort";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}