~ruther/guix-local

dbca541c7ac1867c931cf14756741f352775d218 — Sharlatan Hellseher 6 months ago 101796e
gnu: scregseg: Update to 0.1.3-0.78ebff8.

* gnu/packages/bioinformatics.scm (scregseg): Update to
78ebff8c3507752c3bfbc4db3f72f7e8a733e92f commit.
[arguments] <test-flags>: Provide "--pyargs".
<phases>: Remove 'build-extensions, and 'do-not-fail-to-find-sklearn.
[propagated-inputs]: Remove python-scikit-learn; add
python-scikit-learn-1.6.
[native-inputs]: Remove python-wheel; add python-setuptools.

Change-Id: Ic29e6be3b1fda0d664ed74dfc21da75cb5bcd656
1 files changed, 13 insertions(+), 16 deletions(-)

M gnu/packages/bioinformatics.scm
M gnu/packages/bioinformatics.scm => gnu/packages/bioinformatics.scm +13 -16
@@ 24552,48 24552,45 @@ populations.")
    (license license:bsd-3)))

(define-public scregseg
  ;; 0.1.3 was released in 2023, there are a lot of comparability fixes on
  ;; master branch, use the latest commit for now.
  (let ((commit "78ebff8c3507752c3bfbc4db3f72f7e8a733e92f")
        (revision "0"))
  (package
    (name "scregseg")
    (version "0.1.3")
    (version (git-version "0.1.3" revision commit))
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/BIMSBbioinfo/scregseg")
                    (commit (string-append "v" version))))
                    (commit commit)))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "07g2barywa1wi8mggbxkbxqjw1fzd0a0l9cjdbkx4s40imb1dbxb"))
                "19iasx6zh305cn8p390ack78f4iklyk61xmnf99c2b8ibml7jmzj"))
              (snippet
               '(delete-file "src/scregseg/_utils.c"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:test-flags
      #~(list "--pyargs" "scregseg")
      #: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")))
         ;; NumPy 1.20 deprecated the type wrappers for int and float.
         (add-after 'unpack 'compatibility
           (lambda _
             (substitute* "src/scregseg/_utils.pyx"
               (("np.float") "float"))))
         (add-after 'unpack 'do-not-fail-to-find-sklearn
           (lambda _
             ;; XXX: I have no idea why it cannot seem to find sklearn.
             (substitute* "setup.py"
               (("'sklearn',") "")))))))
               (("np.float") "float")))))))
    (native-inputs
     (list python-cython
           python-wheel))
           python-setuptools))
    (propagated-inputs
     (list python-scikit-learn
     (list python-scikit-learn-1.6
           python-scipy
           python-numpy
           python-hmmlearn


@@ 24615,7 24612,7 @@ Dirichlet-Multinomial emission probabilities to segment the genome either
according to distinct relative cross-cell accessibility profiles or (after
collapsing the single-cell tracks to pseudo-bulk tracks) to capture distinct
cross-cluster accessibility profiles.")
    (license license:gpl3+)))
    (license license:gpl3+))))

(define-public megadepth
  (package