2017-09-05 10:16:41 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2017-09-05 10:04:42 +01:00
|
|
|
, pytest, mock, tornado, pyopenssl, cryptography
|
|
|
|
, idna, certifi, ipaddress, pysocks }:
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "urllib3";
|
2020-05-09 11:02:03 +01:00
|
|
|
version = "1.25.9";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 11:02:03 +01:00
|
|
|
sha256 = "3018294ebefce6572a474f0604c2021e33b3fd8006ecd11d62107a5d2a963527";
|
2017-09-05 10:16:41 +01: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;
|
|
|
|
|
2017-09-05 10:04:42 +01:00
|
|
|
checkInputs = [ pytest mock tornado ];
|
|
|
|
propagatedBuildInputs = [ pyopenssl cryptography idna certifi ipaddress pysocks ];
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-09-05 10:04:42 +01:00
|
|
|
description = "Powerful, sanity-friendly HTTP client for Python";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/shazow/urllib3";
|
2017-09-05 10:16:41 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|