1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 sure, 6 six, 7 pytest, 8 freezegun, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "httpretty"; 14 version = "1.1.4"; 15 format = "setuptools"; 16 17 # drop this for version > 0.9.7 18 # Flaky tests: https://github.com/gabrielfalcao/HTTPretty/pull/394 19 doCheck = lib.versionAtLeast version "0.9.8"; 20 21 src = fetchPypi { 22 inherit pname version; 23 sha256 = "20de0e5dd5a18292d36d928cc3d6e52f8b2ac73daec40d41eb62dee154933b68"; 24 }; 25 26 propagatedBuildInputs = [ six ]; 27 28 nativeCheckInputs = [ 29 sure 30 freezegun 31 pytestCheckHook 32 ]; 33 34 disabledTestPaths = [ 35 "tests/bugfixes" 36 "tests/functional" 37 "tests/pyopenssl" 38 ]; 39 40 __darwinAllowLocalNetworking = true; 41 42 meta = with lib; { 43 homepage = "https://httpretty.readthedocs.org/"; 44 description = "HTTP client request mocking tool"; 45 license = licenses.mit; 46 }; 47}