2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
|
|
|
, pytest, mock, tornado, pyopenssl, cryptography
|
|
|
|
, idna, certifi, ipaddress, pysocks }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "urllib3";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "1.25.10";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-20 17:08:02 +00:00
|
|
|
sha256 = "91056c15fa70756691db97756772bb1eb9678fa585d9184f24534b100dc60f4a";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
NOSE_EXCLUDE = stdenv.lib.concatStringsSep "," [
|
|
|
|
"test_headers" "test_headerdict" "test_can_validate_ip_san" "test_delayed_body_read_timeout"
|
|
|
|
"test_timeout_errors_cause_retries" "test_select_multiple_interrupts_with_event"
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests -v --cover-min-percentage 1
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
checkInputs = [ pytest mock tornado ];
|
|
|
|
propagatedBuildInputs = [ pyopenssl cryptography idna certifi ipaddress pysocks ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Powerful, sanity-friendly HTTP client for Python";
|
|
|
|
homepage = "https://github.com/shazow/urllib3";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|