Files
nixpkgs/pkgs/development/python-modules/aiosql/default.nix
T
Dmitry Shachnev 1fb02dec01 python3Packages.aiosql: 9.0 → 9.1
With 9.0, /lib/python3.11/site-packages/aiosql/adapters directory was
not installed, so the package failed to import. That bug was fixed in
9.1 by https://github.com/nackjicholson/aiosql/pull/174.

Also, add pythonImportsCheck to catch such errors in future.
2023-12-06 15:08:53 +03:00

61 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 = "9.1";
pyproject = true;
disabled = pythonOlder "3.8";
outputs = [
"doc"
"out"
];
src = fetchFromGitHub {
owner = "nackjicholson";
repo = "aiosql";
rev = "refs/tags/${version}";
hash = "sha256-xcrNnp3ZfWLbz+/77N3R5x7N2n7nPcw0khqaIeHn0+Y=";
};
sphinxRoot = "docs/source";
nativeBuildInputs = [
setuptools
setuptools-scm
sphinx-rtd-theme
sphinxHook
];
propagatedBuildInputs = [
pg8000
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "aiosql" ];
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 ];
};
}