2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pytest, hypothesis }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "priority";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "2.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "c965d54f1b8d0d0b19479db3924c7c36cf672dbf2aec92d43fbdaf4492ba18c0";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|