1{ lib 2, buildPythonPackage 3, fetchPypi 4, requests 5, betamax 6, mock 7, pytest 8, pyopenssl 9}: 10 11buildPythonPackage rec { 12 pname = "requests-toolbelt"; 13 version = "0.9.1"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "968089d4584ad4ad7c171454f0a5c6dac23971e9472521ea3b6d49d610aa6fc0"; 18 }; 19 20 checkInputs = [ pyopenssl betamax mock pytest ]; 21 propagatedBuildInputs = [ requests ]; 22 23 checkPhase = '' 24 # disabled tests access the network 25 py.test tests -k "not test_no_content_length_header \ 26 and not test_read_file \ 27 and not test_reads_file_from_url_wrapper" 28 ''; 29 30 meta = { 31 description = "A toolbelt of useful classes and functions to be used with python-requests"; 32 homepage = "http://toolbelt.rtfd.org"; 33 license = lib.licenses.asl20; 34 maintainers = with lib.maintainers; [ matthiasbeyer ]; 35 }; 36}