Files
nixpkgs/pkgs/development/python-modules/aiosql/default.nix
Ihar Hrachyshka cca3b04b44 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 19:01:23 +01:00

60 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pg8000,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
setuptools,
setuptools-scm,
sphinx-rtd-theme,
sphinxHook,
}:
buildPythonPackage rec {
pname = "aiosql";
version = "13.4";
pyproject = true;
disabled = pythonOlder "3.8";
outputs = [
"doc"
"out"
];
src = fetchFromGitHub {
owner = "nackjicholson";
repo = "aiosql";
tag = version;
hash = "sha256-a3pRzcDMXdaDs0ub6k5bPRwnk+RCbxZ7ceIt8/fMSPg=";
};
sphinxRoot = "docs/source";
nativeBuildInputs = [
setuptools
setuptools-scm
sphinx-rtd-theme
sphinxHook
];
propagatedBuildInputs = [ pg8000 ];
nativeCheckInputs = [
pytest-asyncio
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 ];
};
}