me
/
guix
Archived
1
0
Fork 0

gnu: python-future: Fix sanity check.

* gnu/packages/python-xyz.scm (python-future): Exclude winreg and tkinter from
sanity check.
Liliana Marie Prikler 2021-12-17 18:56:56 +01:00
parent 757a7978dd
commit 87ad9d283c
No known key found for this signature in database
GPG Key ID: 442A84B8C70E2F87
1 changed files with 18 additions and 1 deletions

View File

@ -15253,7 +15253,24 @@ development version of CPython that are not available in older releases.")
;; Many tests connect to the network or are otherwise flawed. ;; Many tests connect to the network or are otherwise flawed.
;; https://github.com/PythonCharmers/python-future/issues/210 ;; https://github.com/PythonCharmers/python-future/issues/210
(arguments (arguments
`(#:tests? #f)) `(#:tests? #f
#:phases
(modify-phases %standard-phases
(replace 'sanity-check
(let ((sanity-check (assoc-ref %standard-phases 'sanity-check)))
(lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
(let* ((files (find-files (site-packages inputs outputs)
"top_level\\.txt"))
(backups (map (lambda (f) (string-append f ".bak"))
files)))
(for-each copy-file files backups)
(substitute* files
;; Nobody be usin' winreg on Guix
;; Also, don't force users to have tkinter when they don't
;; need it
(("(winreg|tkinter)") ""))
(apply sanity-check args)
(for-each rename-file backups files))))))))
(home-page "https://python-future.org") (home-page "https://python-future.org")
(synopsis "Single-source support for Python 3 and 2") (synopsis "Single-source support for Python 3 and 2")
(description (description