My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/requirements-parser/default.nix

46 lines
840 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pythonOlder
, types-setuptools
}:
buildPythonPackage rec {
pname = "requirements-parser";
version = "0.5.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "madpah";
repo = pname;
rev = "v${version}";
sha256 = "sha256-e2dfVBMh1uGRMDw7OdPefO4/eRxc3BGwvy/D7u5ipkk=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
types-setuptools
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"requirements"
];
meta = with lib; {
description = "Pip requirements file parser";
homepage = "https://github.com/davidfischer/requirements-parser";
license = licenses.bsd2;
maintainers = teams.determinatesystems.members;
};
}