Skip to content

Commit

Permalink
python311Packages.crontab: init at 0.23.0
Browse files Browse the repository at this point in the history
Parse and use crontab schedules in Python

https://github.com/josiahcarlson/parse-crontab
  • Loading branch information
fabaff committed Jan 25, 2024
1 parent d3a15f0 commit aa09da2
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
45 changes: 45 additions & 0 deletions pkgs/development/python-modules/crontab/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, python-dateutil
, pytz
, setuptools
}:

buildPythonPackage rec {
pname = "crontab";
version = "0.23.0";
pyproject = true;

disabled = pythonOlder "3.8";

src = fetchFromGitHub {
owner = "josiahcarlson";
repo = "parse-crontab";
rev = "refs/tags/${version}";
hash = "sha256-8vMkgBU1jIluo9+hAvk2KNM+Wn0+PvJqFNwX+JLXD+w=";
};

nativeBuildInputs = [
setuptools
];

nativeCheckInputs = [
pytestCheckHook
python-dateutil
pytz
];

pythonImportsCheck = [
"crontab"
];

meta = with lib; {
description = "Parse and use crontab schedules in Python";
homepage = "https://github.com/josiahcarlson/parse-crontab";
license = licenses.lgpl21Only;
maintainers = with maintainers; [ fab ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2440,6 +2440,8 @@ self: super: with self; {

cronsim = callPackage ../development/python-modules/cronsim { };

crontab = callPackage ../development/python-modules/crontab { };

crossplane = callPackage ../development/python-modules/crossplane { };

crownstone-cloud = callPackage ../development/python-modules/crownstone-cloud { };
Expand Down

0 comments on commit aa09da2

Please sign in to comment.