depot/third_party/nixpkgs/pkgs/development/python-modules/parver/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

44 lines
832 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools,
attrs,
pytestCheckHook,
hypothesis,
pretend,
arpeggio,
typing-extensions,
}:
buildPythonPackage rec {
pname = "parver";
version = "0.5";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-uf3h5ruc6fB+COnEvqjYglxeeOGKAFLQLgK/lRfrR3c=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
attrs
arpeggio
] ++ lib.optionals (pythonOlder "3.10") [ typing-extensions ];
nativeCheckInputs = [
pytestCheckHook
hypothesis
pretend
];
meta = with lib; {
description = "Allows parsing and manipulation of PEP 440 version numbers";
homepage = "https://github.com/RazerM/parver";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}