pythonPackages.urllib3: 1.12 -> 1.20
This commit is contained in:
parent
218713aa3d
commit
dc2262b41c
@ -6482,27 +6482,28 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
urllib3 = buildPythonPackage rec {
|
urllib3 = let
|
||||||
name = "urllib3-1.12";
|
disabled_tests = [
|
||||||
|
"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"
|
||||||
|
];
|
||||||
|
in buildPythonPackage rec {
|
||||||
|
pname = "urllib3";
|
||||||
|
version = "1.20";
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
src = fetchPypi {
|
||||||
url = "mirror://pypi/u/urllib3/${name}.tar.gz";
|
inherit pname version;
|
||||||
sha256 = "1ikj72kd4cdcq7pmmcd5p6s9dvp7wi0zw01635v4xzkid5vi598f";
|
sha256 = "0bx76if7shzlyykmaj4fhjkir5bswc4fdx5r4q0lrn3q51p2pvwp";
|
||||||
};
|
};
|
||||||
|
|
||||||
doCheck = !isPy3k; # lots of transient failures
|
NOSE_EXCLUDE=concatStringsSep "," disabled_tests;
|
||||||
checkPhase = ''
|
|
||||||
# Not worth the trouble
|
|
||||||
rm test/with_dummyserver/test_poolmanager.py
|
|
||||||
rm test/with_dummyserver/test_proxy_poolmanager.py
|
|
||||||
rm test/with_dummyserver/test_socketlevel.py
|
|
||||||
# pypy: https://github.com/shazow/urllib3/issues/736
|
|
||||||
rm test/with_dummyserver/test_connectionpool.py
|
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
nosetests -v --cover-min-percentage 1
|
nosetests -v --cover-min-percentage 1
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = with self; [ coverage tornado mock nose ];
|
buildInputs = with self; [ coverage tornado mock nose psutil pysocks ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A Python library for Dropbox's HTTP-based Core and Datastore APIs";
|
description = "A Python library for Dropbox's HTTP-based Core and Datastore APIs";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user