2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
python-dateutil,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2022-12-28 21:21:41 +00:00
|
|
|
}:
|
2020-11-21 19:51:51 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-crontab";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "3.1.0";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
2022-12-28 21:21:41 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-11-21 19:51:51 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-9OoWBdJFM7Z/p6Y07ybLWaXy55VPbmd9LXoiKZWaL8g=";
|
2020-11-21 19:51:51 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ python-dateutil ];
|
2022-12-28 21:21:41 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-12-28 21:21:41 +00:00
|
|
|
|
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"
|
2024-01-25 14:12:00 +00:00
|
|
|
# Test is assuming $CURRENT_YEAR is not a leap year
|
2023-11-16 04:20:00 +00:00
|
|
|
"test_19_frequency_at_month"
|
2024-01-25 14:12:00 +00:00
|
|
|
"test_20_frequency_at_year"
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
2020-11-21 19:51:51 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "crontab" ];
|
2020-11-21 19:51:51 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
2022-12-28 21:21:41 +00:00
|
|
|
homepage = "https://gitlab.com/doctormo/python-crontab/";
|
2020-11-21 19:51:51 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = with maintainers; [ kfollesdal ];
|
|
|
|
};
|
|
|
|
}
|