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