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.3.1";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-UXWVSS3eVwpP1ranb2REQMG6UeIzjIpnHX8Edf2o+f0=";
23 };
24
25 propagatedBuildInputs = [
26 fastnumbers
27 pyicu
28 ];
29
30 nativeCheckInputs = [
31 glibcLocales
32 hypothesis
33 pytest-mock
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [
38 "natsort"
39 ];
40
41 meta = with lib; {
42 description = "Natural sorting for Python";
43 homepage = "https://github.com/SethMMorton/natsort";
44 changelog = "https://github.com/SethMMorton/natsort/blob/${version}/CHANGELOG.md";
45 license = licenses.mit;
46 maintainers = with maintainers; [ ];
47 };
48}