gnu: scregseg: Update to 0.1.3.

* gnu/packages/bioinformatics.scm (scregseg): Update to 0.1.3.
[source]: Simplify snippet.
[build-system]: Use pyproject-build-system.
[arguments]: Add phases 'set-numba-cache-dir and 'build-extensions; enable
tests.
This commit is contained in:
Ricardo Wurmus 2023-02-10 19:41:54 +01:00
parent fea66096a2
commit 8a0b625a2d
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -17787,7 +17787,7 @@ populations.")
(define-public scregseg (define-public scregseg
(package (package
(name "scregseg") (name "scregseg")
(version "0.1.1") (version "0.1.3")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@ -17796,16 +17796,22 @@ populations.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1k8hllr5if6k2mm2zj391fv40sfc008cjm04l9vgfsdppb80i112")) "07g2barywa1wi8mggbxkbxqjw1fzd0a0l9cjdbkx4s40imb1dbxb"))
(snippet (snippet
#~(begin '(delete-file "src/scregseg/_utils.c"))))
(use-modules ((guix build utils))) (build-system pyproject-build-system)
(delete-file "src/scregseg/_utils.c")))))
(build-system python-build-system)
(arguments (arguments
`(#:tests? #false ; tests require network access (list
#:phases #:phases
(modify-phases %standard-phases '(modify-phases %standard-phases
;; Numba needs a writable dir to cache functions.
(add-before 'check 'set-numba-cache-dir
(lambda _
(setenv "NUMBA_CACHE_DIR" "/tmp")))
;; Cython extensions have to be built before running the tests.
(add-before 'check 'build-extensions
(lambda _
(invoke "python" "setup.py" "build_ext" "--inplace")))
(add-after 'unpack 'do-not-fail-to-find-sklearn (add-after 'unpack 'do-not-fail-to-find-sklearn
(lambda _ (lambda _
;; XXX: I have no idea why it cannot seem to find sklearn. ;; XXX: I have no idea why it cannot seem to find sklearn.