about summary refs log tree commit diff
path: root/pkgs/development/python-modules/geventhttpclient
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2021-08-26 21:32:34 +0200
committerMartin Weinelt <hexa@darmstadt.ccc.de>2021-09-01 21:23:07 +0200
commite5715e4ed592c2f078e2c80b8e4eccc1dd191a94 (patch)
tree3c6a1f7eab70bc53a50a3f8acd2d2c236d0a4273 /pkgs/development/python-modules/geventhttpclient
parentc197291a57747313d2daa054821147a4234c008f (diff)
python3Packages.geventhttpclient: 1.4.5 -> 1.5.1
Diffstat (limited to 'pkgs/development/python-modules/geventhttpclient')
-rw-r--r--pkgs/development/python-modules/geventhttpclient/default.nix45
1 files changed, 31 insertions, 14 deletions
diff --git a/pkgs/development/python-modules/geventhttpclient/default.nix b/pkgs/development/python-modules/geventhttpclient/default.nix
index 5563ff94baf56..fd759a0bd723e 100644
--- a/pkgs/development/python-modules/geventhttpclient/default.nix
+++ b/pkgs/development/python-modules/geventhttpclient/default.nix
@@ -1,32 +1,49 @@
 { lib
 , buildPythonPackage
+, pythonOlder
 , fetchPypi
-, pytest
-, gevent
+, backports_ssl_match_hostname
+, brotli
 , certifi
+, gevent
 , six
-, backports_ssl_match_hostname
-, pythonOlder
+, dpkt
+, pytestCheckHook
 }:
 
 buildPythonPackage rec {
   pname = "geventhttpclient";
-  version = "1.4.5";
+  version = "1.5.1";
 
   src = fetchPypi {
     inherit pname version;
-    sha256 = "3f0ab18d84ef26ba0c9df73ae2a41ba30a46072b447f2e36c740400de4a63d44";
+    sha256 = "4aead64253d2769a6528544f7812ce8d71ae13551d079f2d9a3533d72818f2e0";
   };
 
-  buildInputs = [ pytest ];
-  propagatedBuildInputs = [ gevent certifi six ]
-    ++ lib.optionals (pythonOlder "3.7") [ backports_ssl_match_hostname ];
+  propagatedBuildInputs = [
+    brotli
+    certifi
+    gevent
+    six
+  ] ++ lib.optionals (pythonOlder "3.7") [
+    backports_ssl_match_hostname
+  ];
+
+  checkInputs = [
+    dpkt
+    pytestCheckHook
+  ];
 
-  # Several tests fail that require network
-  doCheck = false;
-  checkPhase = ''
-    py.test $out
-  '';
+  disabledTests = [
+    # socket.gaierror: [Errno -2] Name or service not known
+    "test_client_simple"
+    "test_client_without_leading_slas"
+    "test_request_with_headers"
+    "test_response_context_manager"
+    "test_client_ssl"
+    "test_ssl_fail_invalid_certificate"
+    "test_multi_queries_greenlet_safe"
+  ];
 
   meta = with lib; {
     homepage = "https://github.com/gwik/geventhttpclient";