blob: 884069d932bf0255ac14a7f361c76a254f12ed4d (
plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
packaging,
pyparsing,
pytestCheckHook,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "pip-requirements-parser";
version = "32.0.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "nexB";
repo = "pip-requirements-parser";
tag = "v${version}";
hash = "sha256-UMrwDXxk+sD3P2jk7s95y4OX6DRBjWWZZ8IhkR6tnZ4=";
};
dontConfigure = true;
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [
packaging
pyparsing
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pip_requirements_parser" ];
disabledTests = [
"test_RequirementsFile_to_dict"
"test_RequirementsFile_dumps_unparse"
"test_legacy_version_is_deprecated"
];
meta = {
description = "Module to parse pip requirements";
homepage = "https://github.com/nexB/pip-requirements-parser";
changelog = "https://github.com/nexB/pip-requirements-parser/blob/v${version}/CHANGELOG.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|