1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "rangeparser";
12 version = "0.1.3";
13 pyproject = true;
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchPypi {
18 pname = "RangeParser";
19 inherit version;
20 hash = "sha256-gjA7Iytg802Lv7/rLfhGE0yjz4e6FfOXbEoWNPjhCOY=";
21 };
22
23 nativeBuildInputs = [ setuptools ];
24
25 nativeCheckInputs = [ pytestCheckHook ];
26
27 pythonImportsCheck = [ "rangeparser" ];
28
29 meta = with lib; {
30 description = "Parses ranges";
31 homepage = "https://pypi.org/project/RangeParser/";
32 license = licenses.bsd2;
33 maintainers = with maintainers; [ fab ];
34 };
35}