python312Packages.httpretty: fix build

This commit is contained in:
Martin Weinelt 2024-08-04 00:23:13 +02:00
parent 3c26a3a495
commit 96c7496c70
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -2,32 +2,32 @@
lib,
buildPythonPackage,
fetchPypi,
sure,
six,
setuptools,
# tests
freezegun,
mock,
pytestCheckHook,
sure,
}:
buildPythonPackage rec {
pname = "httpretty";
version = "1.1.4";
format = "setuptools";
# drop this for version > 0.9.7
# Flaky tests: https://github.com/gabrielfalcao/HTTPretty/pull/394
doCheck = lib.versionAtLeast version "0.9.8";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "20de0e5dd5a18292d36d928cc3d6e52f8b2ac73daec40d41eb62dee154933b68";
};
propagatedBuildInputs = [ six ];
build-system = [ setuptools ];
nativeCheckInputs = [
sure
freezegun
mock
pytestCheckHook
sure
];
disabledTestPaths = [