gnu: python-pycountry-20.7.3: Switch to git source.

* gnu/packages/iso-codes.scm (python-pycountry-20.7.3): Hide package.
[source]: Switch to git-fetch.
[native-inputs]: Replace inherited python-poetry-core by
python-setuptools.

Change-Id: Ie8832b0dddb3f83d14ea43bf80585aa8fa6739d1
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-09-27 18:42:28 +02:00 committed by Sharlatan Hellseher
parent fdf06879c7
commit 0c2c5fc8cf
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -26,7 +26,6 @@
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix build-system gnu)
#:use-module (guix build-system python)
#:use-module (guix build-system pyproject)
#:use-module (gnu packages check)
#:use-module (gnu packages gettext)
@ -243,13 +242,18 @@ concerned with representation of names for languages and language groups.")
(license license:lgpl2.1+)))
(define-public python-pycountry-20.7.3
(package
(inherit python-pycountry)
(name "python-pycountry")
(version "20.7.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pycountry" version))
(sha256
(base32 "0hnbabsmqimx5hqh0jbd2f64i8fhzhhbrvid57048hs5sd9ll241"))))))
(hidden-package
(package
(inherit python-pycountry)
(name "python-pycountry")
(version "20.7.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pycountry/pycountry")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "1aqzbdqvy3pg0x33ay099vriazs28v6kw7fwc8ajg3avdcws2mgm"))))
(native-inputs (list python-pytest python-pytest-cov python-setuptools)))))