python3Packages.requirements-parser: 0.3.1 -> 0.5.0
This commit is contained in:
committed by
Martin Weinelt
parent
ceab782f12
commit
d4528ddd5b
@@ -1,31 +1,44 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, nose
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, types-setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "requirements-parser";
|
||||
version = "0.3.1";
|
||||
version = "0.5.0";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "3852277618e653dd1d8fa4129e59b4338358dffafeb3d5106e9f88504db9c460";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "madpah";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-e2dfVBMh1uGRMDw7OdPefO4/eRxc3BGwvy/D7u5ipkk=";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
nose
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
nosetests
|
||||
'';
|
||||
propagatedBuildInputs = [
|
||||
types-setuptools
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"requirements"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Pip requirements file parser";
|
||||
description = "Pip requirements file parser";
|
||||
homepage = "https://github.com/davidfischer/requirements-parser";
|
||||
license = licenses.bsd2;
|
||||
maintainers = teams.determinatesystems.members;
|
||||
|
||||
Reference in New Issue
Block a user