1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, poetry-core
5, pytestCheckHook
6, sphinxHook
7, sphinx-rtd-theme
8}:
9
10buildPythonPackage rec {
11 pname = "aiosql";
12 version = "8.0";
13 outputs = [ "out" "doc" ];
14 format = "pyproject";
15
16 src = fetchFromGitHub {
17 owner = "nackjicholson";
18 repo = "aiosql";
19 rev = "refs/tags/${version}";
20 hash = "sha256-cE89w1CbDqlkryRr3yAdSxAtWzV1+O+n41ihTwYWelE=";
21 };
22
23 sphinxRoot = "docs/source";
24
25 nativeBuildInputs = [
26 pytestCheckHook
27 sphinxHook
28 poetry-core
29 sphinx-rtd-theme
30 ];
31
32 pythonImportsCheck = [ "aiosql" ];
33
34 meta = with lib; {
35 description = "Simple SQL in Python";
36 homepage = "https://nackjicholson.github.io/aiosql/";
37 license = with licenses; [ bsd2 ];
38 maintainers = with maintainers; [ kaction ];
39 };
40}