1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6 setuptools,
7 attrs,
8 pytestCheckHook,
9 hypothesis,
10 pretend,
11 arpeggio,
12 typing-extensions,
13}:
14
15buildPythonPackage rec {
16 pname = "parver";
17 version = "0.5";
18 format = "pyproject";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-uf3h5ruc6fB+COnEvqjYglxeeOGKAFLQLgK/lRfrR3c=";
23 };
24
25 nativeBuildInputs = [ setuptools ];
26
27 propagatedBuildInputs = [
28 attrs
29 arpeggio
30 ]
31 ++ lib.optionals (pythonOlder "3.10") [ typing-extensions ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 hypothesis
36 pretend
37 ];
38
39 meta = with lib; {
40 description = "Allows parsing and manipulation of PEP 440 version numbers";
41 homepage = "https://github.com/RazerM/parver";
42 license = licenses.mit;
43 maintainers = [ ];
44 };
45}