mastodon: 4.3.1 -> 4.3.2 (#361487)
[NixPkgs.git] / pkgs / development / python-modules / pip-requirements-parser / default.nix
blobe72824c804a4bb3984ad5f5c95c8387a5e3b3ce4
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   packaging,
6   pyparsing,
7   pytestCheckHook,
8   pythonOlder,
9   setuptools-scm,
12 buildPythonPackage rec {
13   pname = "pip-requirements-parser";
14   version = "32.0.1";
15   format = "setuptools";
17   disabled = pythonOlder "3.6";
19   src = fetchFromGitHub {
20     owner = "nexB";
21     repo = pname;
22     rev = "refs/tags/v${version}";
23     hash = "sha256-UMrwDXxk+sD3P2jk7s95y4OX6DRBjWWZZ8IhkR6tnZ4=";
24   };
26   dontConfigure = true;
28   nativeBuildInputs = [ setuptools-scm ];
30   propagatedBuildInputs = [
31     packaging
32     pyparsing
33   ];
35   nativeCheckInputs = [ pytestCheckHook ];
37   pythonImportsCheck = [ "pip_requirements_parser" ];
39   disabledTests = [
40     "test_RequirementsFile_to_dict"
41     "test_RequirementsFile_dumps_unparse"
42     "test_legacy_version_is_deprecated"
43   ];
45   meta = with lib; {
46     description = "Module to parse pip requirements";
47     homepage = "https://github.com/nexB/pip-requirements-parser";
48     changelog = "https://github.com/nexB/pip-requirements-parser/blob/v${version}/CHANGELOG.rst";
49     license = licenses.mit;
50     maintainers = with maintainers; [ fab ];
51   };