gnu: python-pycountry: Move to (gnu packages iso-codes).

This package makes a lot more sense there, and is actually needed to
run tests of other python packages in this module.

* gnu/packages/python-xyz.scm (python-pycountry)
(python-pycountry@20.7.3): Move them...
* gnu/packages/iso-codes.scm (python-pycountry)
(python-pycountry-20.7.3): ... to this module.
* gnu/packages/music.scm: Import (gnu packages iso-codes).
* gnu/packages/tryton.scm: Import (gnu packages iso-codes).
(trytond-country): Correct python-pycountry@20.7.3 to
python-pycountry-20.7.3.

Change-Id: I7aa424663fb2edc73bca3fcac38de3226cc57a9b
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-09-27 18:18:46 +02:00 committed by Sharlatan Hellseher
parent 31b4c153e1
commit a99b3b8c20
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5
4 changed files with 44 additions and 41 deletions

View file

@ -181,3 +181,43 @@ groups.")
(synopsis "Self-contained ISO 3166-1 country definitions")
(description "This package provides the ISO 3166-1 country definitions.")
(license license:expat)))
(define-public python-pycountry
(package
(name "python-pycountry")
(version "22.3.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pycountry" version))
(sha256
(base32
"0ihnkh86zz01vi46gcwgq6h71jrpj7hq71zi13c98n2qdhj3l5mj"))))
(build-system python-build-system)
(home-page "https://bitbucket.org/flyingcircus/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 Debians pkg-isocodes and makes the data accessible
through a Python API.")
(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"))))))

View file

@ -154,6 +154,7 @@
#:use-module (gnu packages image)
#:use-module (gnu packages image-viewers)
#:use-module (gnu packages imagemagick)
#:use-module (gnu packages iso-codes)
#:use-module (gnu packages java)
#:use-module (gnu packages kde-frameworks)
#:use-module (gnu packages libevent)

View file

@ -237,6 +237,7 @@
#:use-module (gnu packages image-processing)
#:use-module (gnu packages imagemagick)
#:use-module (gnu packages inkscape)
#:use-module (gnu packages iso-codes)
#:use-module (gnu packages java)
#:use-module (gnu packages jupyter)
#:use-module (gnu packages kerberos)
@ -26034,46 +26035,6 @@ converting text with ANSI color codes to HTML or LaTeX.")
can even create animations with the cursor controls.")
(license license:expat)))
(define-public python-pycountry
(package
(name "python-pycountry")
(version "22.3.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pycountry" version))
(sha256
(base32
"0ihnkh86zz01vi46gcwgq6h71jrpj7hq71zi13c98n2qdhj3l5mj"))))
(build-system python-build-system)
(home-page "https://bitbucket.org/flyingcircus/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 Debians pkg-isocodes and makes the data accessible
through a Python API.")
(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"))))))
(define-public python-pycosat
(package
(name "python-pycosat")

View file

@ -33,6 +33,7 @@
#:use-module (gnu packages gnome)
#:use-module (gnu packages graphviz)
#:use-module (gnu packages gtk)
#:use-module (gnu packages iso-codes)
#:use-module (gnu packages pdf)
#:use-module (gnu packages python)
#:use-module (gnu packages python-build)
@ -1739,7 +1740,7 @@ month and a year of work.")
(arguments (tryton-arguments "country" "--no-doctest"))
(native-inputs (%standard-trytond-native-inputs))
(propagated-inputs
(list python-pycountry@20.7.3 trytond))
(list python-pycountry-20.7.3 trytond))
(home-page "http://www.tryton.org/")
(synopsis "Tryton module with countries")
(description