blob: 6cc7a301c2ca747ff01ed7e904ae66b54fa9c501 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitLab,
poetry-core,
dramatiq,
pendulum,
setuptools,
pytest-mock,
pytestCheckHook,
versionCheckHook,
}:
buildPythonPackage rec {
pname = "periodiq";
version = "0.13.0";
pyproject = true;
src = fetchFromGitLab {
owner = "bersace";
repo = "periodiq";
tag = "v${version}";
hash = "sha256-Pyh/T3/HGPYyaXjyM0wkQ1V7p5ibqxE1Q62QwCIJ8To=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'poetry>=0.12' 'poetry-core' \
--replace-fail 'poetry.masonry.api' 'poetry.core.masonry.api'
'';
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
dramatiq
pendulum
setuptools
];
nativeCheckInputs = [
pytestCheckHook
pytest-mock
versionCheckHook
];
enabledTestPaths = [ "tests/unit" ];
pythonImportsCheck = [ "periodiq" ];
meta = {
description = "Simple Scheduler for Dramatiq Task Queue";
mainProgram = "periodiq";
homepage = "https://pypi.org/project/periodiq/";
license = lib.licenses.lgpl3Only;
maintainers = with lib.maintainers; [ traxys ];
};
}
|