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