2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2022-01-13 20:06:32 +00:00
|
|
|
, betamax
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pyopenssl
|
2022-01-13 20:06:32 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, requests
|
2023-08-10 07:59:29 +00:00
|
|
|
, trustme
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "requests-toolbelt";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "1.0.0";
|
2022-01-13 20:06:32 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-08-10 07:59:29 +00:00
|
|
|
hash = "sha256-doGgo9BHAStb3A7jfX+PB+vnarCMrsz8OSHOI8iNW8Y=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-01-13 20:06:32 +00:00
|
|
|
betamax
|
2023-08-10 07:59:29 +00:00
|
|
|
pyopenssl
|
2022-01-13 20:06:32 +00:00
|
|
|
pytestCheckHook
|
2023-08-10 07:59:29 +00:00
|
|
|
trustme
|
2022-01-13 20:06:32 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabledTests = [
|
|
|
|
# incompatible with urllib3 2.0
|
|
|
|
"test_dump_response"
|
|
|
|
"test_dump_all"
|
|
|
|
"test_prepared_request_override_base"
|
|
|
|
"test_prepared_request_with_base"
|
|
|
|
"test_request_override_base"
|
|
|
|
"test_request_with_base"
|
|
|
|
];
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"requests_toolbelt"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Toolbelt of useful classes and functions to be used with requests";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://toolbelt.rtfd.org";
|
2023-08-10 07:59:29 +00:00
|
|
|
changelog = "https://github.com/requests/toolbelt/blob/${version}/HISTORY.rst";
|
2022-01-13 20:06:32 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ matthiasbeyer ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|