mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
48 lines
798 B
Nix
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; [ ];
|
|
};
|
|
}
|