nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 httpcore,
7 httpx,
8 wsproto,
9}:
10
11buildPythonPackage rec {
12 pname = "h11";
13 version = "0.16.0";
14 format = "setuptools";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-TjW5Vs9FeS5MqliF5p+6AL28b/r7+gIDAOVJsgjuX/E=";
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 = {
31 description = "Pure-Python, bring-your-own-I/O implementation of HTTP/1.1";
32 homepage = "https://github.com/python-hyper/h11";
33 license = lib.licenses.mit;
34 maintainers = [ ];
35 };
36}