From 7bc841939df062783c332de65009ccdf73779b9c Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 31 Jan 2023 17:10:22 +0100 Subject: [PATCH 1/2] python3Packages.psycopg: 3.1.3 -> 3.1.8 https://www.psycopg.org/psycopg3/docs/news.html#psycopg-3-1-8 --- pkgs/development/python-modules/psycopg/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/psycopg/default.nix b/pkgs/development/python-modules/psycopg/default.nix index 7138c8aa1c5d..2f1e69fdf6d8 100644 --- a/pkgs/development/python-modules/psycopg/default.nix +++ b/pkgs/development/python-modules/psycopg/default.nix @@ -16,6 +16,7 @@ # psycopg-c , cython_3 +, tomli # docs , furo @@ -32,13 +33,13 @@ let pname = "psycopg"; - version = "3.1.3"; + version = "3.1.8"; src = fetchFromGitHub { owner = "psycopg"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-cAfFxUDgfI3KTlBU9wV/vQkPun4cR3se8eSIHHcEr4g="; + hash = "sha256-VmuotHcLWd+k8/GLv0N2wSZR0sZjY+TmGBQjhpYE3YA="; }; patches = [ @@ -70,9 +71,10 @@ let ''; nativeBuildInputs = [ - setuptools cython_3 postgresql + setuptools + tomli ]; # tested in psycopg @@ -96,7 +98,7 @@ let cd psycopg_pool ''; - propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ + propagatedBuildInputs = [ typing-extensions ]; From 6fb0f96f73433719c7ec420acf79a1c972af10ad Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 31 Jan 2023 16:19:28 +0100 Subject: [PATCH 2/2] python3Packages.psycopg: Disable timing sensitive tests Our build cluster is often busy and cannot really deal with --- pkgs/development/python-modules/psycopg/default.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/psycopg/default.nix b/pkgs/development/python-modules/psycopg/default.nix index 2f1e69fdf6d8..1b84cc6140c8 100644 --- a/pkgs/development/python-modules/psycopg/default.nix +++ b/pkgs/development/python-modules/psycopg/default.nix @@ -183,10 +183,6 @@ buildPythonPackage rec { # don't depend on mypy for tests "test_version" "test_package_version" - ] ++ lib.optionals (stdenv.isDarwin) [ - # racy test - "test_sched" - "test_sched_error" ]; disabledTestPaths = [ @@ -199,7 +195,8 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "-o cache_dir=$TMPDIR" + "-o" "cache_dir=$TMPDIR" + "-m" "'not timing'" ]; postCheck = ''