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