Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, betamax 3, buildPythonPackage 4, fetchpatch 5, fetchPypi 6, mock 7, pyopenssl 8, pytestCheckHook 9, requests 10}: 11 12buildPythonPackage rec { 13 pname = "requests-toolbelt"; 14 version = "0.10.1"; 15 format = "setuptools"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-YuCff/XMvakncqKfOUpJw61ssYHVaLEzdiayq7Yopj0="; 20 }; 21 22 propagatedBuildInputs = [ 23 requests 24 ]; 25 26 nativeCheckInputs = [ 27 betamax 28 mock 29 pytestCheckHook 30 ]; 31 32 disabledTests = [ 33 # https://github.com/requests/toolbelt/issues/306 34 "test_no_content_length_header" 35 "test_read_file" 36 "test_reads_file_from_url_wrapper" 37 "test_x509_der" 38 "test_x509_pem" 39 ]; 40 41 pythonImportsCheck = [ 42 "requests_toolbelt" 43 ]; 44 45 meta = with lib; { 46 description = "Toolbelt of useful classes and functions to be used with requests"; 47 homepage = "http://toolbelt.rtfd.org"; 48 license = licenses.asl20; 49 maintainers = with maintainers; [ matthiasbeyer ]; 50 }; 51}