1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitLab,
5 pytestCheckHook,
6 pythonOlder,
7 python-dateutil,
8 pytz,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "crontab";
14 version = "3.3.0";
15 pyproject = true;
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitLab {
20 owner = "doctormo";
21 repo = "python-crontab";
22 rev = "refs/tags/v${version}";
23 hash = "sha256-eJXtvTRwokbewWrTArHJ2FXGDLvlkGA/5ZZR01koMW8=";
24 };
25
26 build-system = [ setuptools ];
27
28 nativeCheckInputs = [
29 pytestCheckHook
30 python-dateutil
31 pytz
32 ];
33
34 pythonImportsCheck = [ "crontab" ];
35
36 meta = with lib; {
37 description = "Parse and use crontab schedules in Python";
38 homepage = "https://gitlab.com/doctormo/python-crontab/";
39 license = licenses.lgpl21Only;
40 maintainers = with maintainers; [ fab ];
41 };
42}