aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-04-04 21:17:02 +0200
committerAndreas Enge <andreas@enge.fr>2025-04-16 11:46:29 +0200
commit4fe1a73ab8937dc37aa21b3b09828c9469875c3c (patch)
tree2ec19c919ddfadcdb15011bd7d17ed0efb819b9b
parentb717b894a0f1a2c1d9c29709142209dbd962b1d8 (diff)
downloadguix-4fe1a73ab8937dc37aa21b3b09828c9469875c3c.tar.gz
guix-4fe1a73ab8937dc37aa21b3b09828c9469875c3c.zip
gnu: python-crontab: Update to 3.2.0.
* gnu/packages/python-xyz.scm (python-crontab): Update to 3.2.0. [build-system]: Switch to pyproject. [arguments]{test-flags}: Ignore test. {phases}: Remove phase 'disable-failing-tests. Add phase default-to-mcron. [inputs]: Add mcron. [native-inputs]: Add python-pytest, python-setuptools, python-wheel. Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r--gnu/packages/python-xyz.scm36
1 files changed, 17 insertions, 19 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 3083989675..3d4f7e1194 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -231,6 +231,7 @@
#:use-module (gnu packages gsasl)
#:use-module (gnu packages gstreamer)
#:use-module (gnu packages gtk)
+ #:use-module (gnu packages guile-xyz)
#:use-module (gnu packages haskell-xyz)
#:use-module (gnu packages icu4c)
#:use-module (gnu packages image)
@@ -31855,32 +31856,29 @@ format.")
(define-public python-crontab
(package
(name "python-crontab")
- (version "3.0.0")
+ (version "3.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri name version))
(sha256
- (base32 "0yd3vdhl7z8lxa30czsry65srha51ppdcwnhjgxx9pwx0djp9yvr"))))
- (build-system python-build-system)
+ (base32 "0sy3qlki43n6qmhzzzyya4wcs50mcp3mg1ddn9h39plsscfps1j0"))))
+ (build-system pyproject-build-system)
(arguments
- (list
- #:phases
- #~(modify-phases %standard-phases
- (add-before 'check 'disable-failing-tests
- (lambda _
- (substitute* '("tests/test_compatibility.py"
- "tests/test_frequency.py")
- (("test_07_non_posix_shell")
- "__off_test_07_non_posix_shell")
- ;; Fails on leap years
- (("test_19_frequency_at_month")
- "__off_test_19_frequency_at_month")
- ;; AssertionError: 48 != 24
- (("test_20_frequency_at_year")
- "__off_test_20_frequency_at_year")))))))
+ (list #:test-flags
+ ;; This test is made for Windows.
+ #~(list "-k" "not test_07_non_posix_shell")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'defaults-to-mcron
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "crontab.py"
+ (("/usr/bin/crontab")
+ (search-input-file inputs "bin/crontab"))))))))
(inputs
- (list python-dateutil))
+ (list mcron python-dateutil))
+ (native-inputs
+ (list python-pytest python-setuptools python-wheel))
(home-page "https://gitlab.com/doctormo/python-crontab/")
(synopsis "Module for reading and writing crontab files")
(description "This Python module can read, write crontab files, and