summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-10-28 23:00:52 +0100
committerAndreas Enge <andreas@enge.fr>2026-02-07 12:28:34 +0100
commitb2867cf6b7f0637df5036d4d22fb7cf2a1aeeafa (patch)
tree6842888f74b5ce174bcb9e79cea6139014926d25 /gnu
parent4869f4fe7749bae58af612b93c18087c38c5d9bc (diff)
gnu: python-pycountry: Remove coverage input.
* gnu/packages/iso-codes.scm (python-pycountry) [arguments]<#:phases>: Add phase 'fix-pytest-config. [native-inputs]: Rmove python-pytest-cov. [description]: Improve style. Change-Id: I8f04f2fb2a262dd7b8dffff1a6c73cea520a7117 Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/iso-codes.scm33
1 files changed, 22 insertions, 11 deletions
diff --git a/gnu/packages/iso-codes.scm b/gnu/packages/iso-codes.scm
index 0755e99b47c..079cc1c140c 100644
--- a/gnu/packages/iso-codes.scm
+++ b/gnu/packages/iso-codes.scm
@@ -224,19 +224,30 @@ concerned with representation of names for languages and language groups.")
(sha256
(base32 "0qs99acz1vsj96s8pcwbnp3z3s01mzzvdayk7fm0nnl6lf3lz1g1"))))
(build-system pyproject-build-system)
- (native-inputs (list python-poetry-core python-pytest python-pytest-cov))
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-pytest-config
+ (lambda _ ; Removes the need for python-pytest-cov.
+ (substitute* "pyproject.toml"
+ (("--cov --cov-report=html --cov-report=term-missing")
+ "")
+ (("^required_plugins =.*")
+ "")))))))
+ (native-inputs (list python-poetry-core python-pytest))
(home-page "https://github.com/pycountry/pycountry")
(synopsis "ISO databases for languages, countries, currencies, etc.")
(description
"@code{pycountry} provides the ISO databases for the standards:
- @enumerate
- @item 639-3 (Languages)
- @item 3166 (Countries)
- @item 3166-3 (Deleted Countries)
- @item 3166-2 (Subdivisions of countries)
- @item 4217 (Currencies)
- @item 15924 (Scripts)
- @end enumerate
- It includes a copy from Debian’s pkg-isocodes and makes the data accessible
- through a Python API.")
+@enumerate
+@item 639-3 (Languages)
+@item 3166 (Countries)
+@item 3166-3 (Deleted Countries)
+@item 3166-2 (Subdivisions of countries)
+@item 4217 (Currencies)
+@item 15924 (Scripts)
+@end enumerate
+It includes a copy from Debian’s pkg-isocodes and makes the data accessible
+through a Python API.")
(license license:lgpl2.1+)))