Files
nixpkgs/pkgs/development/python-modules/aiosql/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

61 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pg8000,
psycopg,
pytest-asyncio,
pytest-postgresql,
pytestCheckHook,
pythonOlder,
setuptools,
setuptools-scm,
sphinx-rtd-theme,
sphinxHook,
}:
buildPythonPackage rec {
pname = "aiosql";
version = "14.1";
pyproject = true;
outputs = [
"out"
"doc"
];
src = fetchFromGitHub {
owner = "nackjicholson";
repo = "aiosql";
tag = version;
hash = "sha256-BNsjVVyYRfp3sNdzQwHy9nQveP2AHfXGK10DLybat9I=";
};
sphinxRoot = "docs/source";
nativeBuildInputs = [
setuptools
setuptools-scm
sphinx-rtd-theme
sphinxHook
];
nativeCheckInputs = [
pg8000
psycopg
pytest-asyncio
pytest-postgresql
pytestCheckHook
];
pythonImportsCheck = [ "aiosql" ];
meta = {
description = "Simple SQL in Python";
homepage = "https://nackjicholson.github.io/aiosql/";
changelog = "https://github.com/nackjicholson/aiosql/releases/tag/${src.tag}";
license = with lib.licenses; [ bsd2 ];
maintainers = with lib.maintainers; [ kaction ];
};
}