python3.pkgs.testing-postgresql: fix build

Failing Hydra build: https://hydra.nixos.org/build/265189058
`assertRegexpMatches` got deprecated and is now called `assertRegex`.
This commit is contained in:
Maximilian Bosch
2024-07-15 13:18:10 +02:00
parent 75686331f0
commit 278bc9384e
@@ -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" ];