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