From 38266e872f1473df5f62a84dc569d33dd97262fb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 5 Nov 2023 14:59:38 +0100 Subject: [PATCH] python311Packages.aiosql: adjust inputs --- .../python-modules/aiosql/default.nix | 34 ++++++++++++++----- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/aiosql/default.nix b/pkgs/development/python-modules/aiosql/default.nix index d7d87003e1a7..7160eccace60 100644 --- a/pkgs/development/python-modules/aiosql/default.nix +++ b/pkgs/development/python-modules/aiosql/default.nix @@ -1,17 +1,27 @@ { lib , buildPythonPackage , fetchFromGitHub -, poetry-core +, pg8000 +, pytest-asyncio , pytestCheckHook -, sphinxHook +, pythonOlder +, setuptools +, setuptools-scm , sphinx-rtd-theme +, sphinxHook }: buildPythonPackage rec { pname = "aiosql"; version = "9.0"; - outputs = [ "out" "doc" ]; - format = "pyproject"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + outputs = [ + "doc" + "out" + ]; src = fetchFromGitHub { owner = "nackjicholson"; @@ -23,17 +33,25 @@ buildPythonPackage rec { sphinxRoot = "docs/source"; nativeBuildInputs = [ - pytestCheckHook - sphinxHook - poetry-core + setuptools + setuptools-scm sphinx-rtd-theme + sphinxHook ]; - pythonImportsCheck = [ "aiosql" ]; + propagatedBuildInputs = [ + pg8000 + ]; + + nativeCheckInputs = [ + pytest-asyncio + pytestCheckHook + ]; meta = with lib; { description = "Simple SQL in Python"; homepage = "https://nackjicholson.github.io/aiosql/"; + changelog = "https://github.com/nackjicholson/aiosql/releases/tag/${version}"; license = with licenses; [ bsd2 ]; maintainers = with maintainers; [ kaction ]; };