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.2.0";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.6";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-V/hbcsaIsJ4FPNrDAt1bW1PfX3OuILSHT8v/2L94PRE=";
23 };
24
25 propagatedBuildInputs = [
26 fastnumbers
27 PyICU
28 ];
29
30 checkInputs = [
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 license = licenses.mit;
45 maintainers = with maintainers; [ ];
46 };
47}