depot/third_party/nixpkgs/pkgs/development/python-modules/priority/default.nix
Default email 88abffb7d2 Project import generated by Copybara.
GitOrigin-RevId: bc9b956714ed6eac5f8888322aac5bc41389defa
2021-09-18 12:52:07 +02:00

28 lines
694 B
Nix

{ lib, buildPythonPackage, fetchPypi, pytest, hypothesis }:
buildPythonPackage rec {
pname = "priority";
version = "2.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "c965d54f1b8d0d0b19479db3924c7c36cf672dbf2aec92d43fbdaf4492ba18c0";
};
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 ];
};
}