2021-03-05 22:38:19 +00:00
|
|
|
{ lib
|
2021-03-13 09:44:31 +00:00
|
|
|
, stdenv
|
2021-03-05 22:38:19 +00:00
|
|
|
, brotli
|
|
|
|
, buildPythonPackage
|
|
|
|
, certifi
|
|
|
|
, cryptography
|
|
|
|
, dateutil
|
|
|
|
, fetchPypi
|
|
|
|
, idna
|
|
|
|
, mock
|
|
|
|
, pyopenssl
|
|
|
|
, pysocks
|
|
|
|
, pytest-freezegun
|
|
|
|
, pytest-timeout
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, tornado
|
|
|
|
, trustme
|
|
|
|
}:
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "urllib3";
|
2021-02-20 09:09:18 +00:00
|
|
|
version = "1.26.3";
|
2021-03-05 22:38:19 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
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-03-05 22:38:19 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
brotli
|
|
|
|
certifi
|
|
|
|
cryptography
|
|
|
|
idna
|
|
|
|
pyopenssl
|
|
|
|
pysocks
|
2017-09-05 10:16:41 +01:00
|
|
|
];
|
|
|
|
|
2021-03-05 22:38:19 +00:00
|
|
|
checkInputs = [
|
|
|
|
dateutil
|
|
|
|
mock
|
|
|
|
pytest-freezegun
|
|
|
|
pytest-timeout
|
|
|
|
pytestCheckHook
|
|
|
|
tornado
|
|
|
|
trustme
|
|
|
|
];
|
2017-09-05 10:16:41 +01:00
|
|
|
|
2021-03-13 09:44:31 +00: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 22:38:19 +00:00
|
|
|
pythonImportsCheck = [ "urllib3" ];
|
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;
|
2021-03-05 22:38:19 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
}
|