2018-07-19 16:36:05 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-12-30 19:13:30 +00:00
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
2018-07-19 16:36:05 +00:00
|
|
|
, attrs
|
2022-03-23 04:23:45 +00:00
|
|
|
, pytestCheckHook
|
2018-07-19 16:36:05 +00:00
|
|
|
, hypothesis
|
|
|
|
, pretend
|
|
|
|
, arpeggio
|
2022-12-30 19:13:30 +00:00
|
|
|
, typing-extensions
|
2018-07-19 16:36:05 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "parver";
|
2022-12-30 19:13:30 +00:00
|
|
|
version = "0.4";
|
|
|
|
format = "pyproject";
|
2018-07-19 16:36:05 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-12-30 19:13:30 +00:00
|
|
|
hash = "sha256-1KPbuTxTNz7poLoFXkhYxEFpsgS5EuSdAD6tlduam8o=";
|
2018-07-19 16:36:05 +00:00
|
|
|
};
|
|
|
|
|
2022-12-30 19:13:30 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
2018-07-19 16:36:05 +00:00
|
|
|
|
2022-03-23 04:23:45 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
arpeggio
|
2022-12-30 19:13:30 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.10") [
|
|
|
|
typing-extensions
|
2022-03-23 04:23:45 +00:00
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-03-23 04:23:45 +00:00
|
|
|
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 ];
|
2018-07-19 16:36:05 +00:00
|
|
|
};
|
|
|
|
}
|