summaryrefslogtreecommitdiff
path: root/gnu/packages/iso-codes.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-09-27 18:18:46 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-27 23:25:47 +0100
commita99b3b8c209833e84f1f3e76a439e2373a9a3daf (patch)
tree946de5e6be40821d72b5523170106f6b545f5678 /gnu/packages/iso-codes.scm
parent31b4c153e1890b72407ae2543d8d92da3753102e (diff)
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>
Diffstat (limited to 'gnu/packages/iso-codes.scm')
-rw-r--r--gnu/packages/iso-codes.scm40
1 files changed, 40 insertions, 0 deletions
diff --git a/gnu/packages/iso-codes.scm b/gnu/packages/iso-codes.scm
index ad9b90a564..6de45208d4 100644
--- a/gnu/packages/iso-codes.scm
+++ b/gnu/packages/iso-codes.scm
@@ -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 Debian’s 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"))))))