Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / natsort / default.nix
blobaef526b4290ee378364bc7953440fea243ac5f2a
1 { lib
2 , buildPythonPackage
3 , fastnumbers
4 , fetchPypi
5 , glibcLocales
6 , hypothesis
7 , pyicu
8 , pytest-mock
9 , pytestCheckHook
10 , pythonOlder
13 buildPythonPackage rec {
14   pname = "natsort";
15   version = "8.4.0";
16   format = "setuptools";
18   disabled = pythonOlder "3.7";
20   src = fetchPypi {
21     inherit pname version;
22     hash = "sha256-RTEsSg5VB1k9oZPe3QSrsUaSU7YB7K9jRFrYDwoepYE=";
23   };
25   propagatedBuildInputs = [
26     fastnumbers
27     pyicu
28   ];
30   nativeCheckInputs = [
31     glibcLocales
32     hypothesis
33     pytest-mock
34     pytestCheckHook
35   ];
37   disabledTests = [
38     # timing sensitive test
39     # hypothesis.errors.DeadlineExceeded: Test took 524.23ms, which exceeds the deadline of 200.00ms
40     "test_string_component_transform_factory"
41   ];
43   pythonImportsCheck = [
44     "natsort"
45   ];
47   meta = with lib; {
48     description = "Natural sorting for Python";
49     mainProgram = "natsort";
50     homepage = "https://github.com/SethMMorton/natsort";
51     changelog = "https://github.com/SethMMorton/natsort/blob/${version}/CHANGELOG.md";
52     license = licenses.mit;
53     maintainers = with maintainers; [ ];
54   };