567e8dfd8e
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>
61 lines
1.1 KiB
Nix
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 ];
|
|
};
|
|
}
|