python312Packages.webtest: fix tests with python 3.12

This commit is contained in:
Martin Weinelt
2023-12-20 20:46:17 +01:00
parent c70c1ec29a
commit c3d56690ab
@@ -2,6 +2,7 @@
, beautifulsoup4
, buildPythonPackage
, fetchPypi
, fetchpatch
, pastedeploy
, pyquery
, pytestCheckHook
@@ -25,6 +26,15 @@ buildPythonPackage rec {
hash = "sha256-VL2WlyWDjZhhqfon+Nlx950nXZSuJV9cUB9Tu22ZKes=";
};
patches = [
(fetchpatch {
# Replace deprecated unittest aliases for Python 3.12
name = "webtest-python312-compat.patch";
url = "https://github.com/Pylons/webtest/commit/d82ec5bd2cf3c7109a1d49ad9fa802ae1eae1763.patch";
hash = "sha256-hSwxAxAI3Eo28I8S+r2k/hFG8TlzrVYup3MuTsE+xXk=";
})
];
propagatedBuildInputs = [
beautifulsoup4
six