Files
nixpkgs/pkgs/development/python-modules/httpretty/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

53 lines
922 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
# tests
freezegun,
mock,
pytestCheckHook,
sure,
}:
buildPythonPackage rec {
pname = "httpretty";
version = "1.1.4";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "20de0e5dd5a18292d36d928cc3d6e52f8b2ac73daec40d41eb62dee154933b68";
};
patches = [
# https://github.com/gabrielfalcao/HTTPretty/pull/485
# https://github.com/gabrielfalcao/HTTPretty/pull/485
./urllib-2.3.0-compat.patch
];
build-system = [ setuptools ];
nativeCheckInputs = [
freezegun
mock
pytestCheckHook
sure
];
disabledTestPaths = [
"tests/bugfixes"
"tests/functional"
"tests/pyopenssl"
];
__darwinAllowLocalNetworking = true;
meta = {
homepage = "https://httpretty.readthedocs.org/";
description = "HTTP client request mocking tool";
license = lib.licenses.mit;
};
}