2021-03-05 14:38:19 -08:00
|
|
|
{ lib
|
2021-03-13 01:44:31 -08:00
|
|
|
, stdenv
|
2021-03-05 14:38:19 -08:00
|
|
|
, brotli
|
|
|
|
, buildPythonPackage
|
|
|
|
, certifi
|
|
|
|
, cryptography
|
|
|
|
, dateutil
|
|
|
|
, fetchPypi
|
|
|
|
, idna
|
|
|
|
, mock
|
|
|
|
, pyopenssl
|
|
|
|
, pysocks
|
|
|
|
, pytest-freezegun
|
|
|
|
, pytest-timeout
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, tornado
|
|
|
|
, trustme
|
|
|
|
}:
|
2017-09-05 02:16:41 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "urllib3";
|
2021-02-20 01:09:18 -08:00
|
|
|
version = "1.26.3";
|
2021-03-05 14:38:19 -08:00
|
|
|
disabled = pythonOlder "3.6";
|
2017-09-05 02:16:41 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-20 01:09:18 -08:00
|
|
|
sha256 = "de3eedaad74a2683334e282005cd8d7f22f4d55fa690a2a1020a416cb0a47e73";
|
2017-09-05 02:16:41 -07:00
|
|
|
};
|
|
|
|
|
2021-03-05 14:38:19 -08:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
brotli
|
|
|
|
certifi
|
|
|
|
cryptography
|
|
|
|
idna
|
|
|
|
pyopenssl
|
|
|
|
pysocks
|
2017-09-05 02:16:41 -07:00
|
|
|
];
|
|
|
|
|
2021-03-05 14:38:19 -08:00
|
|
|
checkInputs = [
|
|
|
|
dateutil
|
|
|
|
mock
|
|
|
|
pytest-freezegun
|
|
|
|
pytest-timeout
|
|
|
|
pytestCheckHook
|
|
|
|
tornado
|
|
|
|
trustme
|
|
|
|
];
|
2017-09-05 02:16:41 -07:00
|
|
|
|
2021-03-13 01:44:31 -08:00
|
|
|
disabledTests = if stdenv.hostPlatform.isAarch64 then
|
|
|
|
[
|
|
|
|
"test_connection_closed_on_read_timeout_preload_false"
|
|
|
|
"test_ssl_failed_fingerprint_verification"
|
|
|
|
]
|
|
|
|
else
|
|
|
|
null;
|
|
|
|
|
2021-03-05 14:38:19 -08:00
|
|
|
pythonImportsCheck = [ "urllib3" ];
|
2017-09-05 02:16:41 -07:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2017-09-05 02:04:42 -07:00
|
|
|
description = "Powerful, sanity-friendly HTTP client for Python";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/shazow/urllib3";
|
2017-09-05 02:16:41 -07:00
|
|
|
license = licenses.mit;
|
2021-03-05 14:38:19 -08:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2017-09-05 02:16:41 -07:00
|
|
|
};
|
|
|
|
}
|