2021-04-25 03:57:28 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-02-10 20:34:41 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2022-09-30 11:47:45 +00:00
|
|
|
, setuptools
|
2022-02-10 20:34:41 +00:00
|
|
|
, types-setuptools
|
2021-04-25 03:57:28 +00:00
|
|
|
}:
|
2022-02-10 20:34:41 +00:00
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "requirements-parser";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "0.5.0";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-04-25 03:57:28 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "madpah";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-e2dfVBMh1uGRMDw7OdPefO4/eRxc3BGwvy/D7u5ipkk=";
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
2021-04-25 03:57:28 +00:00
|
|
|
];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-09-30 11:47:45 +00:00
|
|
|
setuptools
|
2022-02-10 20:34:41 +00:00
|
|
|
types-setuptools
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-02-10 20:34:41 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"requirements"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-02-10 20:34:41 +00:00
|
|
|
description = "Pip requirements file parser";
|
2021-04-25 03:57:28 +00:00
|
|
|
homepage = "https://github.com/davidfischer/requirements-parser";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = teams.determinatesystems.members;
|
|
|
|
};
|
|
|
|
}
|