snac2: 2.68 -> 2.70 (#379043)
[NixPkgs.git] / pkgs / development / python-modules / naturalsort / default.nix
blob7c82eb5de9c794db90f60d001d07cf30d4a81611
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   pythonOlder,
7   setuptools,
8 }:
10 buildPythonPackage rec {
11   pname = "naturalsort";
12   version = "1.5.1";
13   pyproject = true;
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "xolox";
19     repo = "python-naturalsort";
20     tag = version;
21     hash = "sha256-MBb8yCIs9DW77TKiV3qOHidt8/zi9m2dgyfB3xrdg3A=";
22   };
24   build-system = [ setuptools ];
26   nativeCheckInputs = [ pytestCheckHook ];
28   pythonImportsCheck = [ "natsort" ];
30   meta = with lib; {
31     description = "Simple natural order sorting API for Python that just works";
32     homepage = "https://github.com/xolox/python-naturalsort";
33     changelog = "https://github.com/xolox/python-naturalsort/releases/tag/${version}";
34     license = licenses.mit;
35     maintainers = with maintainers; [ eyjhb ];
36   };