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