1{ lib, buildPythonPackage, fetchPypi, pytest, hypothesis }:
2
3buildPythonPackage rec {
4 pname = "priority";
5 version = "1.3.0";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "1gpzn9k9zgks0iw5wdmad9b4dry8haiz2sbp6gycpjkzdld9dhbb";
10 };
11
12 patches = [
13 # https://github.com/python-hyper/priority/pull/135
14 ./deadline.patch
15 ];
16
17 checkInputs = [ pytest hypothesis ];
18 checkPhase = ''
19 PYTHONPATH="src:$PYTHONPATH" pytest
20 '';
21
22 meta = with lib; {
23 homepage = "https://python-hyper.org/priority/";
24 description = "A pure-Python implementation of the HTTP/2 priority tree";
25 license = licenses.mit;
26 maintainers = [ maintainers.qyliss ];
27 };
28}