1{
2 lib,
3 betamax,
4 buildPythonPackage,
5 fetchPypi,
6 pyopenssl,
7 pytestCheckHook,
8 requests,
9 trustme,
10}:
11
12buildPythonPackage rec {
13 pname = "requests-toolbelt";
14 version = "1.0.0";
15 format = "setuptools";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-doGgo9BHAStb3A7jfX+PB+vnarCMrsz8OSHOI8iNW8Y=";
20 };
21
22 propagatedBuildInputs = [ requests ];
23
24 nativeCheckInputs = [
25 betamax
26 pyopenssl
27 pytestCheckHook
28 trustme
29 ];
30
31 disabledTests = [
32 # incompatible with urllib3 2.0
33 "test_dump_response"
34 "test_dump_all"
35 "test_prepared_request_override_base"
36 "test_prepared_request_with_base"
37 "test_request_override_base"
38 "test_request_with_base"
39 ];
40
41 pythonImportsCheck = [ "requests_toolbelt" ];
42
43 meta = with lib; {
44 description = "Toolbelt of useful classes and functions to be used with requests";
45 homepage = "http://toolbelt.rtfd.org";
46 changelog = "https://github.com/requests/toolbelt/blob/${version}/HISTORY.rst";
47 license = licenses.asl20;
48 maintainers = with maintainers; [ matthiasbeyer ];
49 };
50}