~ruther/guix-local

247afd63f28e75066649f54dfdbe913764d53518 — Kjartan Oli Agustsson 1 year, 1 month ago 1ff6229
gnu: python-ikarus: Run guix style

* gnu/packages/bioinformatics.scm (python-ikarus): Run guix style.

Change-Id: I493beb55986808a8ba27eadcc48d8a2a20b1678e
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 21 insertions(+), 24 deletions(-)

M gnu/packages/bioinformatics.scm
M gnu/packages/bioinformatics.scm => gnu/packages/bioinformatics.scm +21 -24
@@ 22225,32 22225,29 @@ single-cell RNA-seq data.")
       (method url-fetch)
       (uri (pypi-uri "ikarus" version))
       (sha256
        (base32
         "086czpvj4yafz4vrq5rx2gy0bj2l8nzwnkk0gw8qvy4w133xjysy"))))
        (base32 "086czpvj4yafz4vrq5rx2gy0bj2l8nzwnkk0gw8qvy4w133xjysy"))))
    (build-system pyproject-build-system)
    (arguments
     `(#:tests? #false
       #:phases
       (modify-phases %standard-phases
         ;; See https://github.com/BIMSBbioinfo/ikarus/issues/12
         (add-after 'unpack 'fix-issue-12
           (lambda _
             (substitute* "ikarus/classifier.py"
               (("pyscenic.genesig") "ctxcore.genesig"))))
         ;; Numba needs a writable dir to cache functions.
         (add-before 'check 'set-numba-cache-dir
           (lambda _
             (setenv "NUMBA_CACHE_DIR" "/tmp"))))))
    (propagated-inputs
     (list python-numpy
           python-pandas
           python-scipy
           python-scanpy
           python-anndata
           python-ctxcore ;because of issue 12
           pyscenic))
    (native-inputs
     (list python-setuptools python-wheel))
     `(#:tests? #f
       #:phases (modify-phases %standard-phases
                  ;; See https://github.com/BIMSBbioinfo/ikarus/issues/12
                  (add-after 'unpack 'fix-issue-12
                    (lambda _
                      (substitute* "ikarus/classifier.py"
                        (("pyscenic.genesig")
                         "ctxcore.genesig"))))
                  ;; Numba needs a writable dir to cache functions.
                  (add-before 'check 'set-numba-cache-dir
                    (lambda _
                      (setenv "NUMBA_CACHE_DIR" "/tmp"))))))
    (propagated-inputs (list python-numpy
                             python-pandas
                             python-scipy
                             python-scanpy
                             python-anndata
                             python-ctxcore ;because of issue 12
                             pyscenic))
    (native-inputs (list python-setuptools python-wheel))
    (home-page "https://github.com/BIMSBbioinfo/ikarus")
    (synopsis "Machine learning classifier of tumor cells")
    (description