depot/third_party/nixpkgs/pkgs/development/python-modules/parver/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

47 lines
831 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, setuptools
, attrs
, pytestCheckHook
, hypothesis
, pretend
, arpeggio
, typing-extensions
}:
buildPythonPackage rec {
pname = "parver";
version = "0.4";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-1KPbuTxTNz7poLoFXkhYxEFpsgS5EuSdAD6tlduam8o=";
};
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; [ ];
};
}