blob: a7a8c16e20e06033b570da2434de7943df172552 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{
lib,
anyio,
buildPythonPackage,
fetchFromGitHub,
hatch-fancy-pypi-readme,
hatchling,
pytestCheckHook,
trio,
}:
buildPythonPackage rec {
pname = "anysqlite";
version = "0.0.5";
pyproject = true;
src = fetchFromGitHub {
owner = "karpetrosyan";
repo = "anysqlite";
tag = "v${version}";
hash = "sha256-6kNN6kjkMHVNneMq/8zQxqMIXUxH/+eWLX8XhoHqFRU=";
};
nativeBuildInputs = [
hatch-fancy-pypi-readme
hatchling
];
propagatedBuildInputs = [ anyio ];
nativeCheckInputs = [
pytestCheckHook
trio
];
pythonImportsCheck = [ "anysqlite" ];
meta = {
description = "Sqlite3 for asyncio and trio";
homepage = "https://github.com/karpetrosyan/anysqlite";
changelog = "https://github.com/karpetrosyan/anysqlite/blob/${version}/CHANGELOG.md";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fab ];
};
}
|