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