1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5}:
6
7buildPythonPackage rec {
8 pname = "h11";
9 version = "0.12.0";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "0hk0nll6qazsambp3kl8cxxsbl4gv5y9252qadyk0jky0sv2q8j7";
14 };
15
16 checkInputs = [ pytestCheckHook ];
17
18 # Some of the tests use localhost networking.
19 __darwinAllowLocalNetworking = true;
20
21 meta = with lib; {
22 description = "Pure-Python, bring-your-own-I/O implementation of HTTP/1.1";
23 homepage = "https://github.com/python-hyper/h11";
24 license = licenses.mit;
25 };
26}