about summary refs log tree commit diff
path: root/pkgs/development/python-modules/crontab/default.nix
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2024-01-27 04:17:36 +0100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2024-01-27 04:17:36 +0100
commit43545381393695f722344b085620937fa3367a8a (patch)
treee2b7bdf1f0d5453341a4619f8a63948c6e6b2f76 /pkgs/development/python-modules/crontab/default.nix
parent4757f0e68df99bc7177c68dcc7c523e391d213cf (diff)
parent741c01dfc130418b134d48dfbb68f9462f853e32 (diff)
Merge branch 'staging-next' into staging
Diffstat (limited to 'pkgs/development/python-modules/crontab/default.nix')
-rw-r--r--pkgs/development/python-modules/crontab/default.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/crontab/default.nix b/pkgs/development/python-modules/crontab/default.nix
new file mode 100644
index 0000000000000..fea3e9909b701
--- /dev/null
+++ b/pkgs/development/python-modules/crontab/default.nix
@@ -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 ];
+  };
+}