1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 arrow,
7 delorean,
8 pendulum,
9 pynose,
10 pytestCheckHook,
11 pytz,
12 udatetime,
13}:
14
15buildPythonPackage rec {
16 pname = "pycron";
17 version = "3.0.0";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "kipe";
22 repo = "pycron";
23 rev = version;
24 hash = "sha256-+67yU2o31SdgnV3CtiEkLHDltQYgosnqxEuO51rGE4o=";
25 };
26
27 build-system = [ setuptools ];
28
29 nativeCheckInputs = [
30 arrow
31 delorean
32 pendulum
33 pynose
34 pytestCheckHook
35 pytz
36 udatetime
37 ];
38
39 pythonImportsCheck = [ "pycron" ];
40
41 meta = with lib; {
42 description = "Simple cron-like parser for Python, which determines if current datetime matches conditions";
43 license = licenses.mit;
44 homepage = "https://github.com/kipe/pycron";
45 maintainers = with maintainers; [ globin ];
46 };
47}