~ruther/guix-local

ad5929ab7018f57329481f7129ce803278766628 — Nicolas Graves 5 months ago a62b8f1
gnu: ciri-long: Replace python-nose by python-pynose.

* gnu/packages/bioinformatics.scm (ciri-long)
[arguments]: Run guix style -S arguments.
[native-inputs]: Replace python-nose by python-pynose.

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

M gnu/packages/bioinformatics.scm
M gnu/packages/bioinformatics.scm => gnu/packages/bioinformatics.scm +29 -27
@@ 4896,32 4896,34 @@ consensus sequences.")
       (snippet '(delete-file "libs/ccs"))))
    (build-system pyproject-build-system)
    (arguments
     `(#:phases (modify-phases %standard-phases
                  (add-after 'unpack 'relax-requirements
                    (lambda _
                      (substitute* "setup.py"
                        (("'argparse[^']*',")
                         "") ;only for python2
                        (("==")
                         ">=")
                        ;; This package changed names.
                        (("python-Levenshtein")
                         "levenshtein"))))
                  (add-before 'build 'build-libssw
                    (lambda _
                      (with-directory-excursion "libs/striped_smith_waterman"
                        (invoke "make" "libssw.so"))))
                  (add-before 'build 'fix-reference-to-ccs
                    (lambda* (#:key inputs #:allow-other-keys)
                      (substitute* "CIRI_long/pipeline.py"
                        (("'ccs -i")
                         (string-append "'"
                                        (assoc-ref inputs "circtools")
                                        "/bin/ccs" " -i")))
                      ;; yuck!
                      (substitute* "CIRI_long/main.py"
                        (("os.chmod\\(lib_path.*")
                         "")))))))
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'relax-requirements
            (lambda _
              (substitute* "setup.py"
                (("'argparse[^']*',")
                 "") ;only for python2
                (("==")
                 ">=")
                ;; This package changed names.
                (("python-Levenshtein")
                 "levenshtein"))))
          (add-before 'build 'build-libssw
            (lambda _
              (with-directory-excursion "libs/striped_smith_waterman"
                (invoke "make" "libssw.so"))))
          (add-before 'build 'fix-reference-to-ccs
            (lambda* (#:key inputs #:allow-other-keys)
              (substitute* "CIRI_long/pipeline.py"
                (("'ccs -i")
                 (string-append "'"
                                (assoc-ref inputs "circtools") "/bin/ccs"
                                " -i")))
              ;; yuck!
              (substitute* "CIRI_long/main.py"
                (("os.chmod\\(lib_path.*")
                 "")))))))
    (inputs (list circtools
                  python-biopython
                  python-bwapy


@@ 4933,7 4935,7 @@ consensus sequences.")
                  python-pyspoa
                  python-scikit-learn
                  python-scipy))
    (native-inputs (list python-cython python-nose python-setuptools))
    (native-inputs (list python-cython python-pynose python-setuptools))
    (home-page "https://ciri-cookbook.readthedocs.io/")
    (synopsis "Circular RNA identification for Nanopore sequencing")
    (description "CIRI-long is a package for circular RNA identification using