blob: 48591ca542bc82ee3732bd9e0002c076271a2a99 (
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
|
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
python,
cronsim,
python-dateutil,
tzlocal,
pytestCheckHook,
pytest-cov-stub,
pytest-xdist,
}:
buildPythonPackage rec {
pname = "aiocron";
version = "2.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-G7ZaNq7hN+iDNZJ4OVbgx9xHi8PpJz/ChB1dDGBF5NI=";
};
build-system = [ setuptools ];
dependencies = [
cronsim
python-dateutil
tzlocal
];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
pytest-xdist
tzlocal
];
postInstall = ''
rm -rf $out/${python.sitePackages}/tests
'';
pythonImportsCheck = [ "aiocron" ];
meta = {
description = "Crontabs for asyncio";
homepage = "https://github.com/gawel/aiocron/";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.starcraft66 ];
};
}
|