Merge pull request #172552 from fabaff/pip-requirements-parser
python310Packages.pip-requirements-parser: init at 31.2.0main
commit
26d42b0f7b
@ -0,0 +1,48 @@ |
|||||||
|
{ lib |
||||||
|
, buildPythonPackage |
||||||
|
, fetchFromGitHub |
||||||
|
, packaging |
||||||
|
, pytestCheckHook |
||||||
|
, pythonOlder |
||||||
|
, setuptools-scm |
||||||
|
}: |
||||||
|
|
||||||
|
buildPythonPackage rec { |
||||||
|
pname = "pip-requirements-parser"; |
||||||
|
version = "31.2.0"; |
||||||
|
format = "setuptools"; |
||||||
|
|
||||||
|
disabled = pythonOlder "3.6"; |
||||||
|
|
||||||
|
src = fetchFromGitHub { |
||||||
|
owner = "nexB"; |
||||||
|
repo = pname; |
||||||
|
rev = "v${version}"; |
||||||
|
hash = "sha256-i4hw3tS4i2ek2JzcDiGo5aFFJ9J2JJ9MB5vxDhOilb0="; |
||||||
|
}; |
||||||
|
|
||||||
|
dontConfigure = true; |
||||||
|
|
||||||
|
nativeBuildInputs = [ |
||||||
|
setuptools-scm |
||||||
|
]; |
||||||
|
|
||||||
|
propagatedBuildInputs = [ |
||||||
|
packaging |
||||||
|
]; |
||||||
|
|
||||||
|
checkInputs = [ |
||||||
|
pytestCheckHook |
||||||
|
]; |
||||||
|
|
||||||
|
pythonImportsCheck = [ |
||||||
|
"pip_requirements_parser" |
||||||
|
]; |
||||||
|
|
||||||
|
meta = with lib; { |
||||||
|
description = "Module to parse pip requirements"; |
||||||
|
homepage = "https://github.com/nexB/pip-requirements-parser"; |
||||||
|
license = licenses.mit; |
||||||
|
maintainers = with maintainers; [ fab ]; |
||||||
|
}; |
||||||
|
} |
Loading…
Reference in new issue