Skip to content

Commit

Permalink
Merge pull request #265662 from fabaff/aiosql-fix
Browse files Browse the repository at this point in the history
python311Packages.aiosql: adjust inputs
  • Loading branch information
fabaff committed Nov 5, 2023
2 parents 35128eb + 38266e8 commit 4f66b50
Showing 1 changed file with 26 additions and 8 deletions.
34 changes: 26 additions & 8 deletions pkgs/development/python-modules/aiosql/default.nix
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -23,17 +33,25 @@ buildPythonPackage rec {
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 ];
};
Expand Down

0 comments on commit 4f66b50

Please sign in to comment.