From e30d3148b9f865490d4e946396663c953a2a4e4f Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 27 Mar 2025 10:22:56 +0100 Subject: [PATCH] python312Packages.pytest-postrgesql: fix on darwin sandbox --- .../python-modules/pytest-postgresql/default.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/pytest-postgresql/default.nix b/pkgs/development/python-modules/pytest-postgresql/default.nix index 8aaab0f13a69..c989f2748348 100644 --- a/pkgs/development/python-modules/pytest-postgresql/default.nix +++ b/pkgs/development/python-modules/pytest-postgresql/default.nix @@ -2,7 +2,6 @@ lib, buildPythonPackage, fetchFromGitHub, - pythonOlder, pytestCheckHook, pytest-cov-stub, setuptools, @@ -18,8 +17,6 @@ buildPythonPackage rec { version = "6.0.0"; pyproject = true; - disabled = pythonOlder "3.8"; - src = fetchFromGitHub { owner = "ClearcodeHQ"; repo = "pytest-postgresql"; @@ -35,7 +32,7 @@ buildPythonPackage rec { buildInputs = [ pytest ]; - propagatedBuildInputs = [ + dependencies = [ mirakuru port-for psycopg @@ -65,11 +62,13 @@ buildPythonPackage rec { "pytest_postgresql.executor" ]; - meta = with lib; { + __darwinAllowLocalNetworking = true; + + meta = { homepage = "https://pypi.python.org/pypi/pytest-postgresql"; description = "Pytest plugin that enables you to test code on a temporary PostgreSQL database"; changelog = "https://github.com/ClearcodeHQ/pytest-postgresql/blob/v${version}/CHANGES.rst"; - license = licenses.lgpl3Plus; - maintainers = with maintainers; [ bcdarwin ]; + license = lib.licenses.lgpl3Plus; + maintainers = with lib.maintainers; [ bcdarwin ]; }; }