blob: 8be9da8328f2612c17198927ca13d563c67da831 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "naturalsort";
version = "1.5.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "xolox";
repo = "python-naturalsort";
rev = "refs/tags/${version}";
hash = "sha256-MBb8yCIs9DW77TKiV3qOHidt8/zi9m2dgyfB3xrdg3A=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "natsort" ];
meta = with lib; {
description = "Simple natural order sorting API for Python that just works";
homepage = "https://github.com/xolox/python-naturalsort";
changelog = "https://github.com/xolox/python-naturalsort/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ eyjhb ];
};
}
|