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