blob: bf6cb41a791643bfb8d2bb0c75e7fef5df35bb99 (
plain) (
blame)
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
46
47
48
49
50
51
|
{ lib
, anyio
, buildPythonPackage
, fetchFromGitHub
, hatch-fancy-pypi-readme
, hatchling
, pytestCheckHook
, pythonOlder
, trio
}:
buildPythonPackage rec {
pname = "anysqlite";
version = "0.0.5";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "karpetrosyan";
repo = "anysqlite";
rev = "refs/tags/v${version}";
hash = "sha256-6kNN6kjkMHVNneMq/8zQxqMIXUxH/+eWLX8XhoHqFRU=";
};
nativeBuildInputs = [
hatch-fancy-pypi-readme
hatchling
];
propagatedBuildInputs = [
anyio
];
nativeCheckInputs = [
pytestCheckHook
trio
];
pythonImportsCheck = [
"anysqlite"
];
meta = with lib; {
description = "Sqlite3 for asyncio and trio";
homepage = "https://github.com/karpetrosyan/anysqlite";
changelog = "https://github.com/karpetrosyan/anysqlite/blob/${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}
|