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>
This commit is contained in:
Nicolas Graves 2025-04-04 21:17:02 +02:00 committed by Andreas Enge
parent b717b894a0
commit 4fe1a73ab8
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -231,6 +231,7 @@
#:use-module (gnu packages gsasl) #:use-module (gnu packages gsasl)
#:use-module (gnu packages gstreamer) #:use-module (gnu packages gstreamer)
#:use-module (gnu packages gtk) #:use-module (gnu packages gtk)
#:use-module (gnu packages guile-xyz)
#:use-module (gnu packages haskell-xyz) #:use-module (gnu packages haskell-xyz)
#:use-module (gnu packages icu4c) #:use-module (gnu packages icu4c)
#:use-module (gnu packages image) #:use-module (gnu packages image)
@ -31855,32 +31856,29 @@ format.")
(define-public python-crontab (define-public python-crontab
(package (package
(name "python-crontab") (name "python-crontab")
(version "3.0.0") (version "3.2.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri name version)) (uri (pypi-uri name version))
(sha256 (sha256
(base32 "0yd3vdhl7z8lxa30czsry65srha51ppdcwnhjgxx9pwx0djp9yvr")))) (base32 "0sy3qlki43n6qmhzzzyya4wcs50mcp3mg1ddn9h39plsscfps1j0"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list (list #:test-flags
#:phases ;; This test is made for Windows.
#~(modify-phases %standard-phases #~(list "-k" "not test_07_non_posix_shell")
(add-before 'check 'disable-failing-tests #:phases
(lambda _ #~(modify-phases %standard-phases
(substitute* '("tests/test_compatibility.py" (add-after 'unpack 'defaults-to-mcron
"tests/test_frequency.py") (lambda* (#:key inputs #:allow-other-keys)
(("test_07_non_posix_shell") (substitute* "crontab.py"
"__off_test_07_non_posix_shell") (("/usr/bin/crontab")
;; Fails on leap years (search-input-file inputs "bin/crontab"))))))))
(("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")))))))
(inputs (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/") (home-page "https://gitlab.com/doctormo/python-crontab/")
(synopsis "Module for reading and writing crontab files") (synopsis "Module for reading and writing crontab files")
(description "This Python module can read, write crontab files, and (description "This Python module can read, write crontab files, and