gnu: python-pyvcf: Use the fork python-pyvcf3.

* gnu/packages/bioinformatics.scm (python-pyvcf): Define in terms of
'deprecated-package'.
(python-pyvcf3): New variable.
(python-nanosv): Replace python-pyvcf by python-pyvcf3.

Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-03-31 08:18:33 +02:00 committed by Andreas Enge
parent 55d4ab9a08
commit 31a494c658
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -24004,51 +24004,33 @@ for the analysis and visualization of raw nanopore signal.")
;; Some parts may be BSD-3-licensed. ;; Some parts may be BSD-3-licensed.
(license license:mpl2.0))) (license license:mpl2.0)))
(define-public python-pyvcf ;; This is a fork of the original unmaintained python-pyvcf.
(let ((commit "476169cd457ba0caa6b998b301a4d91e975251d9") (define-public python-pyvcf3
(let ((commit "1fb3789153d1d8e28e2cedf121399f276b5f312a")
(revision "0")) (revision "0"))
(package (package
(name "python-pyvcf") (name "python-pyvcf3")
(version (git-version "0.6.8" revision commit)) (version (git-version "1.0.3" revision commit))
;; Use git, because the PyPI tarballs lack test data.
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
(url "https://github.com/jamescasbon/PyVCF.git") (url "https://github.com/dridk/PyVCF3")
;; Latest release is not tagged.
(commit commit))) (commit commit)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32 "0i4j5bq5q32q216ja7yvg0mpww5j0b9p8ky5bya4d31wqmygal8z"))))
"0qf9lwj7r2hjjp4bd4vc7nayrhblfm4qcqs4dbd43a6p4bj2jv5p")))) (build-system pyproject-build-system)
(build-system python-build-system) (propagated-inputs (list python-setuptools))
(arguments (native-inputs (list python-setuptools python-wheel))
`(#:phases (home-page "https://github.com/dridk/PyVCF3")
(modify-phases %standard-phases
(add-after 'unpack 'patch-sample-script
(lambda _
;; Add Python 3 compatibility to this sample script.
(substitute* "scripts/vcf_sample_filter.py"
(("print (.*)\n" _ arg)
(string-append "print(" arg ")\n")))))
(add-after 'install 'remove-installed-tests
;; Do not install test files.
(lambda* (#:key inputs outputs #:allow-other-keys)
(delete-file-recursively (string-append
(site-packages inputs outputs)
"/vcf/test")))))))
(native-inputs
;; Older setuptools is needed for use_2to3.
(list python-cython python-setuptools-57))
(propagated-inputs
(list python-pysam python-rpy2))
(home-page "https://github.com/jamescasbon/PyVCF")
(synopsis "Variant Call Format parser for Python") (synopsis "Variant Call Format parser for Python")
(description "This package provides a @acronym{VCF,Variant Call Format} (description "This package provides a @acronym{VCF,Variant Call Format}
parser for Python.") parser for Python.")
(license license:expat)))) (license license:expat))))
(define-deprecated/public-alias python-pyvcf python-pyvcf3)
(define-public nanosv (define-public nanosv
(package (package
(name "nanosv") (name "nanosv")
@ -24061,7 +24043,7 @@ parser for Python.")
"1wl2daj0bwrl8fx5xi8j8hfs3mp3vg3qycy66538n032v1qkc6xg")))) "1wl2daj0bwrl8fx5xi8j8hfs3mp3vg3qycy66538n032v1qkc6xg"))))
(build-system python-build-system) (build-system python-build-system)
(inputs (inputs
(list python-configparser python-pysam python-pyvcf)) (list python-configparser python-pysam python-pyvcf3))
(home-page "https://github.com/mroosmalen/nanosv") (home-page "https://github.com/mroosmalen/nanosv")
(synopsis "Structural variation detection tool for Oxford Nanopore data") (synopsis "Structural variation detection tool for Oxford Nanopore data")
(description "NanoSV is a software package that can be used to identify (description "NanoSV is a software package that can be used to identify