depot/third_party/nixpkgs/pkgs/development/python-modules/requirements-parser/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

44 lines
938 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytestCheckHook,
pythonOlder,
setuptools,
types-setuptools,
}:
buildPythonPackage rec {
pname = "requirements-parser";
version = "0.9.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "madpah";
repo = "requirements-parser";
rev = "refs/tags/v${version}";
hash = "sha256-ZkyfK2s6wmKX/AJsOXlAHOpJ2/zZO0zipdM3j2BrrWo=";
};
build-system = [ poetry-core ];
dependencies = [
setuptools
types-setuptools
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "requirements" ];
meta = with lib; {
description = "Pip requirements file parser";
homepage = "https://github.com/davidfischer/requirements-parser";
changelog = "https://github.com/madpah/requirements-parser/blob/v${version}/CHANGELOG.md";
license = licenses.bsd2;
maintainers = [ ];
};
}