1{ lib, buildPythonPackage, fetchPypi, python-dateutil, pytestCheckHook }:
2
3buildPythonPackage rec {
4 pname = "python-crontab";
5 version = "2.6.0";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "1e35ed7a3cdc3100545b43e196d34754e6551e7f95e4caebbe0e1c0ca41c2f1b";
10 };
11
12 checkInputs = [ pytestCheckHook ];
13 disabledTests = [
14 "test_07_non_posix_shell"
15 # doctest that assumes /tmp is writeable, awkward to patch
16 "test_03_usage"
17 ];
18
19 propagatedBuildInputs = [ python-dateutil ];
20
21 meta = with lib; {
22 description = "Python API for crontab";
23 longDescription = ''
24 Crontab module for reading and writing crontab files
25 and accessing the system cron automatically and simply using a direct API.
26 '';
27 homepage = "https://pypi.org/project/python-crontab/";
28 license = licenses.lgpl3Plus;
29 maintainers = with maintainers; [ kfollesdal ];
30 };
31}