1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 pythonOlder,
7 httpcore,
8 httpx,
9 wsproto,
10}:
11
12buildPythonPackage rec {
13 pname = "h11";
14 version = "0.16.0";
15 format = "setuptools";
16 disabled = pythonOlder "3.6";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-TjW5Vs9FeS5MqliF5p+6AL28b/r7+gIDAOVJsgjuX/E=";
21 };
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 # Some of the tests use localhost networking.
26 __darwinAllowLocalNetworking = true;
27
28 passthru.tests = {
29 inherit httpcore httpx wsproto;
30 };
31
32 meta = with lib; {
33 description = "Pure-Python, bring-your-own-I/O implementation of HTTP/1.1";
34 homepage = "https://github.com/python-hyper/h11";
35 license = licenses.mit;
36 maintainers = [ ];
37 };
38}