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