nixpkgs/pkgs/development/python-modules/parver/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
847 B
Nix
Raw Normal View History

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