From ae2e089b5a23c1a721e43819e6feb9c3b664907b Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sat, 8 Nov 2025 14:54:37 +0100 Subject: [PATCH] gnu: python-bibtexparser: Update to 2.0.0b8. * gnu/packages/python-xyz.scm (python-bibtexparser): Update to 2.0.0b8. [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [native-inputs]: Remove python-future. Add python-pylatexenc, python-pytest and python-setuptools. (python-bibtexparser-for-cobib): New variable. * gnu/packages/textutils.scm (cobib)[propagated-inputs]: Remove python-bibtexparser; add python-bibtexparser-for-cobib. Change-Id: I924fba9ccf9487dea6409fb4d1e1d69ab026c130 Modified-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 38 ++++++++++++++++++++++++++++--------- gnu/packages/textutils.scm | 2 +- 2 files changed, 30 insertions(+), 10 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 0d55ed3e35b28c8227db76d53059289be1af56d3..4f33bdf5480efe76daa7de74619e5ee660d42ca7 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -28837,21 +28837,41 @@ for manual interpretation.") (define-public python-bibtexparser (package (name "python-bibtexparser") - (version "1.4.0") - (source (origin - (method url-fetch) - (uri (pypi-uri "bibtexparser" version)) - (sha256 - (base32 - "1rmc178qqb8814v3pcfv4qgl8rxmkd11d56limkqmi776jyf4z6a")))) - (build-system python-build-system) + (version "2.0.0b8") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/sciunto-org/python-bibtexparser") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "065b6267ygphacfc9aawckv0yz9x3pzd4ivdbsr8cla3zs3lqzg7")))) + (build-system pyproject-build-system) (propagated-inputs (list python-pyparsing)) - (native-inputs (list python-future)) + (native-inputs + (list python-pylatexenc python-pytest python-setuptools)) (home-page "https://github.com/sciunto-org/python-bibtexparser") (synopsis "Python library to parse BibTeX files") (description "BibtexParser is a Python library to parse BibTeX files.") (license (list license:bsd-3 license:lgpl3)))) +(define-public python-bibtexparser-for-cobib + (hidden-package + (package + (inherit python-bibtexparser) + (name "python-bibtexparser") + (version "1.4.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/sciunto-org/python-bibtexparser") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0zrgfgmh37m9frq528vy66p2fhlxzrxyhj0inc6qwg0m717w9zbl"))))))) + (define-public python-distro (package (name "python-distro") diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm index 1c0d973bf1a041ec0d2033b79f9fffb26477e26a..7a1193e6a1db7a5545c44272845142dca02204b7 100644 --- a/gnu/packages/textutils.scm +++ b/gnu/packages/textutils.scm @@ -1439,7 +1439,7 @@ OpenDocument presentations (*.odp).") python-setuptools)) (propagated-inputs (list python-beautifulsoup4 - python-bibtexparser + python-bibtexparser-for-cobib python-lxml python-mdit-py-plugins ;XXX: for sanity-check python-natsort