From 40b416e4dbd581d0599188b26f4a17833d5d30f5 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 4 Jan 2026 21:07:57 +0000 Subject: [PATCH] gnu: python-pygenometracks: Update to 3.9. * gnu/packages/bioinformatics.scm (python-pygenometracks): Update to 3.9. [source]: Switch to git-fetch. [arguments] : Enable them. : Remove 'remove-invalid-syntax; adjust 'relax-requirements. [propagated-inputs]: Add python-bx-python, python-pybedtools, and python-pyfaidx. [native-inputs]: Remove python-wheel; add python-setuptools. Change-Id: I364255a3e4d072535a871340588cdff0f30b83ff Signed-off-by: Rutherther --- gnu/packages/bioinformatics.scm | 44 ++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index 6d2b507667395a0acd7a218e7d8f5174e6bc1a4f..7b6db6e9085cc430e2098ff7b5e4822323b96ff5 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -20441,42 +20441,46 @@ the HiCExplorer and pyGenomeTracks packages.") (define-public python-pygenometracks (package (name "python-pygenometracks") - (version "3.5") + (version "3.9") (source (origin - (method url-fetch) - (uri (pypi-uri "pyGenomeTracks" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/deeptools/pyGenomeTracks") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 - "1l7smg2gc1vm2181lzmdnywb11gp6s6z6j444dbsigv65car8z8p")))) + (base32 "1xaw0yjdqnxd1d1aww1x2kkfydrmbdvpvma2ahmax68f5a68b0yk")))) (build-system pyproject-build-system) (arguments (list - #:tests? #f ;there are none + ;; tests: 1 failed, 205 passed, 4 skipped, 229 warnings + #:test-flags + ;; AttributeError: module 'bx.seq' has no attribute 'DNA_COMP' + #~(list "--deselect=pygenometracks/tests/test_maf.py::test_first_maf_seq_zoom_dec") #:phases - '(modify-phases %standard-phases - (add-after 'unpack 'relax-requirements - (lambda _ - (substitute* "setup.py" - (("matplotlib ==3.1.1") - "matplotlib >=3.1.1")))) - (add-after 'unpack 'remove-invalid-syntax - (lambda _ - (substitute* "setup.py" - ((".\\*,") ","))))))) + #~(modify-phases %standard-phases + (add-after 'unpack 'relax-requirements + (lambda _ + (substitute* "pyproject.toml" + (("matplotlib >=3.1.1,<3.9") + "matplotlib >=3.1.1"))))))) + (native-inputs + (list python-pytest + python-setuptools)) (propagated-inputs - (list python-future + (list python-bx-python + python-future python-gffutils python-hicmatrix python-intervaltree python-matplotlib python-numpy + python-pybedtools python-pybigwig + python-pyfaidx python-pysam python-tqdm)) - (native-inputs - (list python-pytest - python-wheel)) (home-page "https://pygenometracks.readthedocs.io") (synopsis "Program and library to plot beautiful genome browser tracks") (description