From e81b676b95cf068311e53496519774b6c23ae3a5 Mon Sep 17 00:00:00 2001 From: Hugo Buddelmeijer Date: Sun, 5 Oct 2025 23:25:31 +0200 Subject: [PATCH] gnu: lcov-cobertura: Fix build. * gnu/packages/code.scm (lcov-cobertura): Fix build. [arguments] <#:phases>: Add 'patch-source phase. Change-Id: Ie040ad02e53eab2733254e2a6a1c6d034b2ec6d3 Signed-off-by: Sharlatan Hellseher --- gnu/packages/code.scm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm index 0111dbc5132d71b159df34d337a79c8c56f7c61b..abb210eac2c74b8d37ff78c0212337b20ffd1ab3 100644 --- a/gnu/packages/code.scm +++ b/gnu/packages/code.scm @@ -627,6 +627,21 @@ functionality such as HTML output.") (sha256 (base32 "13xmr249c6qygm14gilb0icrsgb35ghsrr14a1zvppmxy9jf5a7g")))) (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-source + (lambda _ + ;; Prevent setuptools.errors.InvalidConfigError: + ;; License classifiers have been superseded by license expressions + ;; (see https://peps.python.org/pep-0639/). Please remove: + ;; License :: OSI Approved :: Apache Software License + ;; Reported upstream: + ;; https://github.com/eriwen/lcov-to-cobertura-xml/pull/65 + (substitute* "setup.cfg" + (("\tLicense :: OSI Approved :: Apache Software License\n") + ""))))))) (native-inputs (list python-pytest python-setuptools