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