depot/third_party/nixpkgs/pkgs/development/python-modules/priority/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

28 lines
682 B
Nix

{ lib, buildPythonPackage, fetchPypi, 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 ];
};
}