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