blob: fea3e9909b7018f030da7f91c508ae069f27d154 (
plain) (
blame)
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
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, python-dateutil
, pytz
, setuptools
}:
buildPythonPackage rec {
pname = "crontab";
version = "0.23.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "josiahcarlson";
repo = "parse-crontab";
rev = "refs/tags/${version}";
hash = "sha256-8vMkgBU1jIluo9+hAvk2KNM+Wn0+PvJqFNwX+JLXD+w=";
};
nativeBuildInputs = [
setuptools
];
nativeCheckInputs = [
pytestCheckHook
python-dateutil
pytz
];
pythonImportsCheck = [
"crontab"
];
meta = with lib; {
description = "Parse and use crontab schedules in Python";
homepage = "https://github.com/josiahcarlson/parse-crontab";
license = licenses.lgpl21Only;
maintainers = with maintainers; [ fab ];
};
}
|