2021-01-24 00:29:22 +00:00
|
|
|
{ lib, 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";
|
2021-02-20 09:09:18 +00:00
|
|
|
version = "1.26.3";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-20 09:09:18 +00:00
|
|
|
sha256 = "de3eedaad74a2683334e282005cd8d7f22f4d55fa690a2a1020a416cb0a47e73";
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
2021-01-24 00:29:22 +00:00
|
|
|
NOSE_EXCLUDE = lib.concatStringsSep "," [
|
2017-09-05 10:16:41 +01:00
|
|
|
"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
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with 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;
|
|
|
|
};
|
|
|
|
}
|