python3Packages.urllib3: enable tests (#114282)
This commit is contained in:
parent
3f2e5044ce
commit
dced68b718
@ -1,33 +1,57 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi
|
{ lib
|
||||||
, pytest, mock, tornado, pyopenssl, cryptography
|
, brotli
|
||||||
, idna, certifi, ipaddress, pysocks }:
|
, buildPythonPackage
|
||||||
|
, certifi
|
||||||
|
, cryptography
|
||||||
|
, dateutil
|
||||||
|
, fetchPypi
|
||||||
|
, idna
|
||||||
|
, mock
|
||||||
|
, pyopenssl
|
||||||
|
, pysocks
|
||||||
|
, pytest-freezegun
|
||||||
|
, pytest-timeout
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, tornado
|
||||||
|
, trustme
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "urllib3";
|
pname = "urllib3";
|
||||||
version = "1.26.3";
|
version = "1.26.3";
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "de3eedaad74a2683334e282005cd8d7f22f4d55fa690a2a1020a416cb0a47e73";
|
sha256 = "de3eedaad74a2683334e282005cd8d7f22f4d55fa690a2a1020a416cb0a47e73";
|
||||||
};
|
};
|
||||||
|
|
||||||
NOSE_EXCLUDE = lib.concatStringsSep "," [
|
propagatedBuildInputs = [
|
||||||
"test_headers" "test_headerdict" "test_can_validate_ip_san" "test_delayed_body_read_timeout"
|
brotli
|
||||||
"test_timeout_errors_cause_retries" "test_select_multiple_interrupts_with_event"
|
certifi
|
||||||
|
cryptography
|
||||||
|
idna
|
||||||
|
pyopenssl
|
||||||
|
pysocks
|
||||||
];
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
checkInputs = [
|
||||||
nosetests -v --cover-min-percentage 1
|
dateutil
|
||||||
'';
|
mock
|
||||||
|
pytest-freezegun
|
||||||
|
pytest-timeout
|
||||||
|
pytestCheckHook
|
||||||
|
tornado
|
||||||
|
trustme
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = false;
|
pythonImportsCheck = [ "urllib3" ];
|
||||||
|
|
||||||
checkInputs = [ pytest mock tornado ];
|
|
||||||
propagatedBuildInputs = [ pyopenssl cryptography idna certifi ipaddress pysocks ];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Powerful, sanity-friendly HTTP client for Python";
|
description = "Powerful, sanity-friendly HTTP client for Python";
|
||||||
homepage = "https://github.com/shazow/urllib3";
|
homepage = "https://github.com/shazow/urllib3";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user