1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 hatchling,
7 anyio,
8 pytestCheckHook,
9 trio,
10}:
11
12buildPythonPackage rec {
13 pname = "sqlite-anyio";
14 version = "0.2.3";
15 pyproject = true;
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "davidbrochart";
21 repo = "sqlite-anyio";
22 tag = "v${version}";
23 hash = "sha256-cZyTpFmYD0l20Cmxl+Hwfh3oVkWvtXD45dMpcSwA2QE=";
24 };
25
26 build-system = [ hatchling ];
27
28 dependencies = [ anyio ];
29
30 pythonImportsCheck = [ "sqlite_anyio" ];
31
32 nativeCheckInputs = [
33 pytestCheckHook
34 trio
35 ];
36
37 meta = with lib; {
38 description = "Asynchronous client for SQLite using AnyIO";
39 homepage = "https://github.com/davidbrochart/sqlite-anyio";
40 changelog = "https://github.com/davidbrochart/sqlite-anyio/releases/tag/v${version}";
41 license = licenses.mit;
42 maintainers = [ ];
43 };
44}