1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 packaging, 6 pyparsing, 7 pytestCheckHook, 8 pythonOlder, 9 setuptools-scm, 10}: 11 12buildPythonPackage rec { 13 pname = "pip-requirements-parser"; 14 version = "32.0.1"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.6"; 18 19 src = fetchFromGitHub { 20 owner = "nexB"; 21 repo = "pip-requirements-parser"; 22 tag = "v${version}"; 23 hash = "sha256-UMrwDXxk+sD3P2jk7s95y4OX6DRBjWWZZ8IhkR6tnZ4="; 24 }; 25 26 dontConfigure = true; 27 28 nativeBuildInputs = [ setuptools-scm ]; 29 30 propagatedBuildInputs = [ 31 packaging 32 pyparsing 33 ]; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 37 pythonImportsCheck = [ "pip_requirements_parser" ]; 38 39 disabledTests = [ 40 "test_RequirementsFile_to_dict" 41 "test_RequirementsFile_dumps_unparse" 42 "test_legacy_version_is_deprecated" 43 ]; 44 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 }; 52}