2019-06-16 19:59:06 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pytest, hypothesis }:
|
2018-10-26 13:58:18 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "priority";
|
|
|
|
version = "1.3.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1gpzn9k9zgks0iw5wdmad9b4dry8haiz2sbp6gycpjkzdld9dhbb";
|
|
|
|
};
|
|
|
|
|
2019-03-19 21:28:54 +00:00
|
|
|
patches = [
|
|
|
|
# https://github.com/python-hyper/priority/pull/135
|
|
|
|
./deadline.patch
|
|
|
|
];
|
|
|
|
|
2018-10-26 13:58:18 +00:00
|
|
|
checkInputs = [ pytest hypothesis ];
|
|
|
|
checkPhase = ''
|
|
|
|
PYTHONPATH="src:$PYTHONPATH" pytest
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://python-hyper.org/priority/";
|
2018-10-26 13:58:18 +00:00
|
|
|
description = "A pure-Python implementation of the HTTP/2 priority tree";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.qyliss ];
|
|
|
|
};
|
|
|
|
}
|