1{ lib
2, buildPythonPackage
3, fastnumbers
4, fetchPypi
5, glibcLocales
6, hypothesis
7, pyicu
8, pytest-mock
9, pytestCheckHook
10, pythonOlder
11}:
12
13buildPythonPackage rec {
14 pname = "natsort";
15 version = "8.4.0";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-RTEsSg5VB1k9oZPe3QSrsUaSU7YB7K9jRFrYDwoepYE=";
23 };
24
25 propagatedBuildInputs = [
26 fastnumbers
27 pyicu
28 ];
29
30 nativeCheckInputs = [
31 glibcLocales
32 hypothesis
33 pytest-mock
34 pytestCheckHook
35 ];
36
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 ];
42
43 pythonImportsCheck = [
44 "natsort"
45 ];
46
47 meta = with lib; {
48 description = "Natural sorting for Python";
49 homepage = "https://github.com/SethMMorton/natsort";
50 changelog = "https://github.com/SethMMorton/natsort/blob/${version}/CHANGELOG.md";
51 license = licenses.mit;
52 maintainers = with maintainers; [ ];
53 };
54}