blob: 41aff20516e150361e43db40c1897206e826b8e0 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{
lib,
aiofiles,
aiosqlite,
buildPythonPackage,
cbor2,
dbutils,
fetchFromGitHub,
msgpack,
pymysql,
pytest-asyncio,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "persist-queue";
version = "1.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "peter-wangxu";
repo = "persist-queue";
tag = "v${version}";
hash = "sha256-8LtXTpwAk71sjxvZudwk+4P4ohlWC0zagr5F8PTkTwk=";
};
build-system = [ setuptools ];
optional-dependencies = {
async = [
aiofiles
aiosqlite
];
extra = [
cbor2
dbutils
msgpack
pymysql
];
};
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
]
++ lib.concatAttrValues optional-dependencies;
pythonImportsCheck = [ "persistqueue" ];
meta = {
changelog = "https://github.com/peter-wangxu/persist-queue/releases/tag/${src.tag}";
description = "Thread-safe disk based persistent queue in Python";
homepage = "https://github.com/peter-wangxu/persist-queue";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ huantian ];
};
}
|