gnu: python-scikit-learn: Make gzip timestamps writable.

* gnu/packages/machine-learning.scm (python-scikit-learn)
[arguments]: Add custom phase to make gzip timestamps writable.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
Brian Leung 2019-06-25 20:50:54 +02:00 committed by Efraim Flashner
parent d9340de903
commit 71804546b1
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -821,8 +821,14 @@ (define-public python-scikit-learn
(setenv "HOME" "/tmp")
(invoke "pytest" "sklearn" "-m" "not network")))
;; FIXME: This fails with permission denied
(delete 'reset-gzip-timestamps))))
(add-before 'reset-gzip-timestamps 'make-files-writable
(lambda* (#:key outputs #:allow-other-keys)
;; Make sure .gz files are writable so that the
;; 'reset-gzip-timestamps' phase can do its work.
(let ((out (assoc-ref outputs "out")))
(for-each make-file-writable
(find-files out "\\.gz$"))
#t))))))
(inputs
`(("openblas" ,openblas)))
(native-inputs