Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pip-requirements-parser / default.nix
blob84cc2ed513a17fde4653736eee2375536b0a9fdf
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , packaging
5 , pyparsing
6 , pytestCheckHook
7 , pythonOlder
8 , setuptools-scm
9 }:
11 buildPythonPackage rec {
12   pname = "pip-requirements-parser";
13   version = "32.0.1";
14   format = "setuptools";
16   disabled = pythonOlder "3.6";
18   src = fetchFromGitHub {
19     owner = "nexB";
20     repo = pname;
21     rev = "refs/tags/v${version}";
22     hash = "sha256-UMrwDXxk+sD3P2jk7s95y4OX6DRBjWWZZ8IhkR6tnZ4=";
23   };
25   dontConfigure = true;
27   nativeBuildInputs = [
28     setuptools-scm
29   ];
31   propagatedBuildInputs = [
32     packaging
33     pyparsing
34   ];
36   nativeCheckInputs = [
37     pytestCheckHook
38   ];
40   pythonImportsCheck = [
41     "pip_requirements_parser"
42   ];
44   disabledTests = [
45     "test_RequirementsFile_to_dict"
46     "test_RequirementsFile_dumps_unparse"
47     "test_legacy_version_is_deprecated"
48   ];
50   meta = with lib; {
51     description = "Module to parse pip requirements";
52     homepage = "https://github.com/nexB/pip-requirements-parser";
53     changelog = "https://github.com/nexB/pip-requirements-parser/blob/v${version}/CHANGELOG.rst";
54     license = licenses.mit;
55     maintainers = with maintainers; [ fab ];
56   };