at 22.05-pre 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy27 5, nose 6, webob 7, six 8, beautifulsoup4 9, waitress 10, mock 11, pyquery 12, wsgiproxy2 13, pastedeploy 14}: 15 16buildPythonPackage rec { 17 version = "2.0.35"; 18 pname = "webtest"; 19 disabled = isPy27; # paste.deploy is not longer a valid import 20 21 src = fetchPypi { 22 pname = "WebTest"; 23 inherit version; 24 sha256 = "sha256-qsFotbK08gCvTjWGfPMWcSIQ49XbgcHL3/OHImR7sIc="; 25 }; 26 27 postPatch = '' 28 substituteInPlace setup.py --replace "nose<1.3.0" "nose" 29 ''; 30 31 propagatedBuildInputs = [ 32 webob 33 six 34 beautifulsoup4 35 waitress 36 ]; 37 38 checkInputs = [ 39 nose 40 mock 41 pastedeploy 42 wsgiproxy2 43 pyquery 44 ]; 45 46 # Some of the tests use localhost networking. 47 __darwinAllowLocalNetworking = true; 48 49 pythonImportsCheck = [ "webtest" ]; 50 51 meta = with lib; { 52 description = "Helper to test WSGI applications"; 53 homepage = "https://webtest.readthedocs.org/en/latest/"; 54 license = licenses.mit; 55 maintainers = with maintainers; [ ]; 56 }; 57}