1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 pytestCheckHook,
7 pythonOlder,
8 typing-extensions,
9}:
10
11buildPythonPackage rec {
12 pname = "aiosqlite";
13 version = "0.20.0";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "omnilib";
20 repo = pname;
21 rev = "refs/tags/v${version}";
22 hash = "sha256-JQ9iNxK7FvBhPyr825d+8P5ZYFztDIX3gOwp4FPfyU4=";
23 };
24
25 nativeBuildInputs = [ flit-core ];
26
27 propagatedBuildInputs = [ typing-extensions ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 # Tests are not pick-up automatically by the hook
32 pytestFlagsArray = [ "aiosqlite/tests/*.py" ];
33
34 pythonImportsCheck = [ "aiosqlite" ];
35
36 meta = with lib; {
37 description = "Asyncio bridge to the standard sqlite3 module";
38 homepage = "https://github.com/jreese/aiosqlite";
39 changelog = "https://github.com/omnilib/aiosqlite/blob/v${version}/CHANGELOG.md";
40 license = licenses.mit;
41 maintainers = with maintainers; [ ];
42 };
43}