gnu: clipper: Update to 2.0.1.
* gnu/packages/bioinformatics.scm (clipper): Update to 2.0.1. [source]: Add snippet to remove pre-compiled files. [arguments]: Disable tests, delete 'sanity-check phase, and add 'use-python3-for-cython phase.master
parent
fc797a3e8f
commit
6eecbfb9ac
|
@ -2628,7 +2628,7 @@ databases.")
|
||||||
(define-public clipper
|
(define-public clipper
|
||||||
(package
|
(package
|
||||||
(name "clipper")
|
(name "clipper")
|
||||||
(version "2.0")
|
(version "2.0.1")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
|
@ -2637,10 +2637,16 @@ databases.")
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1bcag4lb5bkzsj2vg7lrq24aw6yfgq275ifrbhd82l7kqgbbjbkv"))))
|
"0508rgnfjk5ar5d1mjbjyrnarv4kw9ksq0m3jw2bmgabmb5v6ikk"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(snippet
|
||||||
|
'(begin
|
||||||
|
;; Delete pre-compiled files.
|
||||||
|
(delete-file "clipper/src/peaks.so")))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:tests? #false
|
||||||
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-before 'reset-gzip-timestamps 'make-files-writable
|
(add-before 'reset-gzip-timestamps 'make-files-writable
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
@ -2648,14 +2654,30 @@ databases.")
|
||||||
;; 'reset-gzip-timestamps' phase can do its work.
|
;; 'reset-gzip-timestamps' phase can do its work.
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(let ((out (assoc-ref outputs "out")))
|
||||||
(for-each make-file-writable
|
(for-each make-file-writable
|
||||||
(find-files out "\\.gz$"))
|
(find-files out "\\.gz$")))))
|
||||||
#t)))
|
(add-after 'unpack 'use-python3-for-cython
|
||||||
|
(lambda _
|
||||||
|
(substitute* "setup.py"
|
||||||
|
(("^setup")
|
||||||
|
"\
|
||||||
|
peaks.cython_directives = {'language_level': '3'}
|
||||||
|
readsToWiggle.cython_directives = {'language_level': '3'}
|
||||||
|
setup"))))
|
||||||
(add-after 'unpack 'disable-nondeterministic-test
|
(add-after 'unpack 'disable-nondeterministic-test
|
||||||
(lambda _
|
(lambda _
|
||||||
;; This test fails/succeeds non-deterministically.
|
;; This test fails/succeeds non-deterministically.
|
||||||
(substitute* "clipper/test/test_call_peak.py"
|
(substitute* "clipper/test/test_call_peak.py"
|
||||||
(("test_get_FDR_cutoff_mean") "_test_get_FDR_cutoff_mean"))
|
(("test_get_FDR_cutoff_mean") "_test_get_FDR_cutoff_mean"))))
|
||||||
#t)))))
|
;; This doesn't work because "usage" is executed, and that calls
|
||||||
|
;; exit(8).
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(add-installed-pythonpath inputs outputs)
|
||||||
|
(with-directory-excursion "clipper/test"
|
||||||
|
(invoke "python" "-m" "unittest")))))
|
||||||
|
;; This is not a library
|
||||||
|
(delete 'sanity-check))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("htseq" ,htseq)
|
`(("htseq" ,htseq)
|
||||||
("python-pybedtools" ,python-pybedtools)
|
("python-pybedtools" ,python-pybedtools)
|
||||||
|
|
Reference in New Issue