2020-11-21 19:51:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, python-dateutil, pytestCheckHook }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-crontab";
|
2021-10-17 09:34:42 +00:00
|
|
|
version = "2.6.0";
|
2020-11-21 19:51:51 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-17 09:34:42 +00:00
|
|
|
sha256 = "1e35ed7a3cdc3100545b43e196d34754e6551e7f95e4caebbe0e1c0ca41c2f1b";
|
2020-11-21 19:51:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
2021-12-06 16:07:01 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_07_non_posix_shell"
|
|
|
|
# doctest that assumes /tmp is writeable, awkward to patch
|
|
|
|
"test_03_usage"
|
|
|
|
];
|
2020-11-21 19:51:51 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ python-dateutil ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python API for crontab";
|
|
|
|
longDescription = ''
|
|
|
|
Crontab module for reading and writing crontab files
|
|
|
|
and accessing the system cron automatically and simply using a direct API.
|
|
|
|
'';
|
|
|
|
homepage = "https://pypi.org/project/python-crontab/";
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = with maintainers; [ kfollesdal ];
|
|
|
|
};
|
|
|
|
}
|