Files
nixpkgs/pkgs/development/python-modules/python-crontab/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

52 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
python-dateutil,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "python-crontab";
version = "3.3.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "python_crontab";
inherit version;
hash = "sha256-AHyK7mjd3z4E7E3OD6wSS5O9aL50cPyV0qlhehXeKRs=";
};
build-system = [ setuptools ];
dependencies = [ python-dateutil ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
"test_07_non_posix_shell"
# doctest that assumes /tmp is writeable, awkward to patch
"test_03_usage"
# Test is assuming $CURRENT_YEAR is not a leap year
"test_19_frequency_at_month"
"test_20_frequency_at_year"
];
pythonImportsCheck = [ "crontab" ];
meta = {
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 = lib.licenses.lgpl3Plus;
maintainers = with lib.maintainers; [ kfollesdal ];
};
}