1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytestCheckHook, 7 pythonOlder, 8 setuptools, 9 types-setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "requirements-parser"; 14 version = "0.11.0"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "madpah"; 21 repo = "requirements-parser"; 22 tag = "v${version}"; 23 hash = "sha256-o9IriQXa2Pd7s16IENqcWgi73XZQoXsbXU471V1CFaI="; 24 }; 25 26 build-system = [ poetry-core ]; 27 28 dependencies = [ 29 setuptools 30 types-setuptools 31 ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 pythonImportsCheck = [ "requirements" ]; 36 37 meta = with lib; { 38 description = "Pip requirements file parser"; 39 homepage = "https://github.com/davidfischer/requirements-parser"; 40 changelog = "https://github.com/madpah/requirements-parser/blob/v${version}/CHANGELOG.md"; 41 license = licenses.bsd2; 42 maintainers = [ ]; 43 }; 44}