summary refs log tree commit diff
path: root/pkgs/development/python-modules/priority/default.nix
blob: a699f6ff812f7d6308859f13620412074f30e16b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ 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 ];
  };
}