1{ lib
2, buildPythonPackage
3, fetchPypi
4, python-dateutil
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "python-crontab";
11 version = "2.7.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-shr0ZHx7u4SP7y8CBhbGsCidy5+UtPmRpVMQ/5vsV0k=";
19 };
20
21 propagatedBuildInputs = [
22 python-dateutil
23 ];
24
25 nativeCheckInputs = [
26 pytestCheckHook
27 ];
28
29 disabledTests = [
30 "test_07_non_posix_shell"
31 # doctest that assumes /tmp is writeable, awkward to patch
32 "test_03_usage"
33 ];
34
35 pythonImportsCheck = [
36 "crontab"
37 ];
38
39 meta = with lib; {
40 description = "Python API for crontab";
41 longDescription = ''
42 Crontab module for reading and writing crontab files
43 and accessing the system cron automatically and simply using a direct API.
44 '';
45 homepage = "https://gitlab.com/doctormo/python-crontab/";
46 license = licenses.lgpl3Plus;
47 maintainers = with maintainers; [ kfollesdal ];
48 };
49}