nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, brotli
3, buildPythonPackage
4, certifi
5, dpkt
6, fetchPypi
7, gevent
8, pytestCheckHook
9, pythonOlder
10, six
11}:
12
13buildPythonPackage rec {
14 pname = "geventhttpclient";
15 version = "1.5.3";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-2A7J/0K3IZ8zVYGFSZ0LQ2VZf8Vf+IYge0X1Yy4Jl4A=";
23 };
24
25 propagatedBuildInputs = [
26 brotli
27 certifi
28 gevent
29 six
30 ];
31
32 checkInputs = [
33 dpkt
34 pytestCheckHook
35 ];
36
37 disabledTests = [
38 # socket.gaierror: [Errno -2] Name or service not known
39 "test_client_simple"
40 "test_client_without_leading_slas"
41 "test_request_with_headers"
42 "test_response_context_manager"
43 "test_client_ssl"
44 "test_ssl_fail_invalid_certificate"
45 "test_multi_queries_greenlet_safe"
46 ];
47
48 pythonImportsCheck = [
49 "geventhttpclient"
50 ];
51
52 meta = with lib; {
53 homepage = "https://github.com/gwik/geventhttpclient";
54 description = "HTTP client library for gevent";
55 license = licenses.mit;
56 maintainers = with maintainers; [ koral ];
57 };
58}