Files
nixpkgs/pkgs/development/python-modules/crontab/default.nix
T
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

43 lines
819 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitLab,
pytestCheckHook,
pythonOlder,
python-dateutil,
pytz,
setuptools,
}:
buildPythonPackage rec {
pname = "crontab";
version = "3.3.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitLab {
owner = "doctormo";
repo = "python-crontab";
rev = "refs/tags/v${version}";
hash = "sha256-eJXtvTRwokbewWrTArHJ2FXGDLvlkGA/5ZZR01koMW8=";
};
build-system = [ setuptools ];
nativeCheckInputs = [
pytestCheckHook
python-dateutil
pytz
];
pythonImportsCheck = [ "crontab" ];
meta = {
description = "Parse and use crontab schedules in Python";
homepage = "https://gitlab.com/doctormo/python-crontab/";
license = lib.licenses.lgpl21Only;
maintainers = with lib.maintainers; [ fab ];
};
}