Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / httpretty / default.nix
blobecde40353f3164e7a372f97569de0d140880d8ce
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , sure
5 , six
6 , pytest
7 , freezegun
8 , pytestCheckHook
9 }:
11 buildPythonPackage rec {
12   pname = "httpretty";
13   version = "1.1.4";
14   format = "setuptools";
16   # drop this for version > 0.9.7
17   # Flaky tests: https://github.com/gabrielfalcao/HTTPretty/pull/394
18   doCheck = lib.versionAtLeast version "0.9.8";
20   src = fetchPypi {
21     inherit pname version;
22     sha256 = "20de0e5dd5a18292d36d928cc3d6e52f8b2ac73daec40d41eb62dee154933b68";
23   };
25   propagatedBuildInputs = [ six ];
27   nativeCheckInputs = [
28     sure
29     freezegun
30     pytestCheckHook
31   ];
33   disabledTestPaths = [
34     "tests/bugfixes"
35     "tests/functional"
36     "tests/pyopenssl"
37   ];
39   __darwinAllowLocalNetworking = true;
41   meta = with lib; {
42     homepage = "https://httpretty.readthedocs.org/";
43     description = "HTTP client request mocking tool";
44     license = licenses.mit;
45   };