Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.4"; 17 format = "pyproject"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-1KPbuTxTNz7poLoFXkhYxEFpsgS5EuSdAD6tlduam8o="; 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; [ SuperSandro2000 ]; 46 }; 47}