From 278bc9384eaad1b82149e34060abfab5b982fcc2 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Mon, 15 Jul 2024 13:18:10 +0200 Subject: [PATCH] python3.pkgs.testing-postgresql: fix build Failing Hydra build: https://hydra.nixos.org/build/265189058 `assertRegexpMatches` got deprecated and is now called `assertRegex`. --- pkgs/development/python-modules/testing-postgresql/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/testing-postgresql/default.nix b/pkgs/development/python-modules/testing-postgresql/default.nix index 1b1527cc4872..c2b85fe8f9d7 100644 --- a/pkgs/development/python-modules/testing-postgresql/default.nix +++ b/pkgs/development/python-modules/testing-postgresql/default.nix @@ -46,6 +46,8 @@ buildPythonPackage rec { postPatch = '' substituteInPlace setup.py \ --replace "pg8000 >= 1.10" "pg8000" + substituteInPlace tests/test_postgresql.py \ + --replace-fail "self.assertRegexpMatches" "self.assertRegex" ''; pythonImportsCheck = [ "testing.postgresql" ];