9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
49 lines
1 KiB
Nix
49 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, python-dateutil
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-crontab";
|
|
version = "3.0.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-eft0ZQOd39T7k9By1u4NRcGsi/FZfwaG6hT9Q2Hbo3k=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
python-dateutil
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
"test_07_non_posix_shell"
|
|
# doctest that assumes /tmp is writeable, awkward to patch
|
|
"test_03_usage"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"crontab"
|
|
];
|
|
|
|
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://gitlab.com/doctormo/python-crontab/";
|
|
license = licenses.lgpl3Plus;
|
|
maintainers = with maintainers; [ kfollesdal ];
|
|
};
|
|
}
|