diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/priority/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/priority/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/priority/default.nix b/nixpkgs/pkgs/development/python-modules/priority/default.nix new file mode 100644 index 000000000000..f2f7a935cc41 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/priority/default.nix @@ -0,0 +1,28 @@ +{ lib, buildPythonPackage, fetchPypi, fetchpatch, pytest, hypothesis }: + +buildPythonPackage rec { + pname = "priority"; + version = "1.3.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "1gpzn9k9zgks0iw5wdmad9b4dry8haiz2sbp6gycpjkzdld9dhbb"; + }; + + patches = [ + # https://github.com/python-hyper/priority/pull/135 + ./deadline.patch + ]; + + checkInputs = [ pytest hypothesis ]; + checkPhase = '' + PYTHONPATH="src:$PYTHONPATH" pytest + ''; + + meta = with lib; { + homepage = https://python-hyper.org/priority/; + description = "A pure-Python implementation of the HTTP/2 priority tree"; + license = licenses.mit; + maintainers = [ maintainers.qyliss ]; + }; +} |