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