From 94754588855782ce8a121dc6d3a3635d5e04bb58 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 23 Sep 2025 15:26:56 +0100 Subject: [PATCH] gnu: python-taggd: Switch to pyproject, fix tests. * gnu/packages/bioinformatics.scm (python-taggd)[build-system]: Switch to pyproject-build-system. [arguments] : Move skipping tests options here. : Remove 'disable-broken-tests; add 'remove-local-taggd. [propagated-inputs]: Remove python-setuptools. [native-inputs]: Add python-pytest and python-setuptools. Change-Id: I8cd3a72b2469dbb0d53c21f2fda30c0b004a6c8d --- gnu/packages/bioinformatics.scm | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index ede8eb70b272a8d7b2d0aeb619fb3669238c7165..26847d6edcf114a2ea71b7270a4a25a8b10896c0 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -12167,20 +12167,23 @@ interpretation.") (snippet '(for-each delete-file (find-files "taggd" "\\.c$"))))) - (build-system python-build-system) + (build-system pyproject-build-system) (arguments (list + #:test-flags + ;; AssertionError: 0 is not true : Running Normal BAM test failed. + #~(list "-k" "not test_normal_bam_run") #:phases - '(modify-phases %standard-phases - (add-after 'unpack 'disable-broken-tests - (lambda _ - (substitute* "tests/taggd_demultiplex_test.py" - (("def test_normal_bam_run") - "def _disabled_test_normal_bam_run"))))))) + #~(modify-phases %standard-phases + (add-before 'check 'remove-local-taggd + (lambda _ + ;; This would otherwise interfere with finding the installed + ;; taggd when running tests. + (delete-file-recursively "taggd")))))) (propagated-inputs - (list python-numpy python-pysam python-setuptools)) + (list python-numpy python-pysam)) (native-inputs - (list python-cython)) + (list python-cython python-pytest python-setuptools)) (home-page "https://github.com/SpatialTranscriptomicsResearch/taggd") (synopsis "Genetic barcode demultiplexing") (description "This package provides TagGD barcode demultiplexing utilities