1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 7 # tests 8 freezegun, 9 mock, 10 pytestCheckHook, 11 sure, 12}: 13 14buildPythonPackage rec { 15 pname = "httpretty"; 16 version = "1.1.4"; 17 pyproject = true; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "20de0e5dd5a18292d36d928cc3d6e52f8b2ac73daec40d41eb62dee154933b68"; 22 }; 23 24 patches = [ 25 # https://github.com/gabrielfalcao/HTTPretty/pull/485 26 # https://github.com/gabrielfalcao/HTTPretty/pull/485 27 ./urllib-2.3.0-compat.patch 28 ]; 29 30 build-system = [ setuptools ]; 31 32 nativeCheckInputs = [ 33 freezegun 34 mock 35 pytestCheckHook 36 sure 37 ]; 38 39 disabledTestPaths = [ 40 "tests/bugfixes" 41 "tests/functional" 42 "tests/pyopenssl" 43 ]; 44 45 __darwinAllowLocalNetworking = true; 46 47 meta = with lib; { 48 homepage = "https://httpretty.readthedocs.org/"; 49 description = "HTTP client request mocking tool"; 50 license = licenses.mit; 51 }; 52}