mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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:
parent
b717b894a0
commit
4fe1a73ab8
1 changed files with 17 additions and 19 deletions
|
@ -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
|
||||||
|
;; This test is made for Windows.
|
||||||
|
#~(list "-k" "not test_07_non_posix_shell")
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-before 'check 'disable-failing-tests
|
(add-after 'unpack 'defaults-to-mcron
|
||||||
(lambda _
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(substitute* '("tests/test_compatibility.py"
|
(substitute* "crontab.py"
|
||||||
"tests/test_frequency.py")
|
(("/usr/bin/crontab")
|
||||||
(("test_07_non_posix_shell")
|
(search-input-file inputs "bin/crontab"))))))))
|
||||||
"__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")))))))
|
|
||||||
(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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue