diff options
Diffstat (limited to 'pkgs/development/python-modules/aiosql/default.nix')
-rw-r--r-- | pkgs/development/python-modules/aiosql/default.nix | 38 |
1 files changed, 28 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/aiosql/default.nix b/pkgs/development/python-modules/aiosql/default.nix index 88a1c7aa37c..7160eccace6 100644 --- a/pkgs/development/python-modules/aiosql/default.nix +++ b/pkgs/development/python-modules/aiosql/default.nix @@ -1,39 +1,57 @@ { lib , buildPythonPackage , fetchFromGitHub -, poetry-core +, pg8000 +, pytest-asyncio , pytestCheckHook -, sphinxHook +, pythonOlder +, setuptools +, setuptools-scm , sphinx-rtd-theme +, sphinxHook }: buildPythonPackage rec { pname = "aiosql"; - version = "8.0"; - outputs = [ "out" "doc" ]; - format = "pyproject"; + version = "9.0"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + outputs = [ + "doc" + "out" + ]; src = fetchFromGitHub { owner = "nackjicholson"; repo = "aiosql"; rev = "refs/tags/${version}"; - hash = "sha256-cE89w1CbDqlkryRr3yAdSxAtWzV1+O+n41ihTwYWelE="; + hash = "sha256-AwuZ3y/qAyZzffTG6mHLk0b+zFB9307VjAX8g1pvWto="; }; sphinxRoot = "docs/source"; nativeBuildInputs = [ - pytestCheckHook - sphinxHook - poetry-core + setuptools + setuptools-scm sphinx-rtd-theme + sphinxHook + ]; + + propagatedBuildInputs = [ + pg8000 ]; - pythonImportsCheck = [ "aiosql" ]; + 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 ]; }; |