From c14f32e46d259b4dabfa5b231c0c89619dca50f5 Mon Sep 17 00:00:00 2001 From: Dmitry Shachnev Date: Tue, 9 Dec 2025 14:17:42 +0300 Subject: [PATCH 1/3] python3Packages.aiosql: 13.4 -> 14.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also drop check for Python version: we don’t have anything older than Python 3.10 anyway (thanks dotlambda for the suggestion). --- pkgs/development/python-modules/aiosql/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/aiosql/default.nix b/pkgs/development/python-modules/aiosql/default.nix index 1c233d8f9f2c..751a89329bd4 100644 --- a/pkgs/development/python-modules/aiosql/default.nix +++ b/pkgs/development/python-modules/aiosql/default.nix @@ -14,11 +14,9 @@ buildPythonPackage rec { pname = "aiosql"; - version = "13.4"; + version = "14.1"; pyproject = true; - disabled = pythonOlder "3.8"; - outputs = [ "doc" "out" @@ -28,7 +26,7 @@ buildPythonPackage rec { owner = "nackjicholson"; repo = "aiosql"; tag = version; - hash = "sha256-a3pRzcDMXdaDs0ub6k5bPRwnk+RCbxZ7ceIt8/fMSPg="; + hash = "sha256-BNsjVVyYRfp3sNdzQwHy9nQveP2AHfXGK10DLybat9I="; }; sphinxRoot = "docs/source"; From 60481d51c37b899f9ded4d349850658f318f7e37 Mon Sep 17 00:00:00 2001 From: Dmitry Shachnev Date: Tue, 9 Dec 2025 14:21:55 +0300 Subject: [PATCH 2/3] python3Packages.aiosql: Enable PostgreSQL tests with pg8000 and psycopg Also, move pg8000 from propagatedBuildInputs to nativeCheckInputs. It is just one of many supported backends, so it is an optional dependency. --- pkgs/development/python-modules/aiosql/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aiosql/default.nix b/pkgs/development/python-modules/aiosql/default.nix index 751a89329bd4..ea77af58e5da 100644 --- a/pkgs/development/python-modules/aiosql/default.nix +++ b/pkgs/development/python-modules/aiosql/default.nix @@ -3,7 +3,9 @@ buildPythonPackage, fetchFromGitHub, pg8000, + psycopg, pytest-asyncio, + pytest-postgresql, pytestCheckHook, pythonOlder, setuptools, @@ -38,10 +40,11 @@ buildPythonPackage rec { sphinxHook ]; - propagatedBuildInputs = [ pg8000 ]; - nativeCheckInputs = [ + pg8000 + psycopg pytest-asyncio + pytest-postgresql pytestCheckHook ]; From 2a0daa500ba99cafd81caebd0bd2a25ee446c042 Mon Sep 17 00:00:00 2001 From: Dmitry Shachnev Date: Tue, 9 Dec 2025 14:22:45 +0300 Subject: [PATCH 3/3] python3Packages.aiosql: Make "out" the first derivation This way, "PYTHONPATH=${python3.pkgs.aiosql}/${python3.sitePackages}" will produce the correct result. --- pkgs/development/python-modules/aiosql/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/aiosql/default.nix b/pkgs/development/python-modules/aiosql/default.nix index ea77af58e5da..990d249e4e95 100644 --- a/pkgs/development/python-modules/aiosql/default.nix +++ b/pkgs/development/python-modules/aiosql/default.nix @@ -20,8 +20,8 @@ buildPythonPackage rec { pyproject = true; outputs = [ - "doc" "out" + "doc" ]; src = fetchFromGitHub {