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