all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#55580] [PATCH] gnu: Add python-langcodes
@ 2022-05-22 18:54 Artyom V. Poptsov
  2022-06-05 19:00 ` Mathieu Othacehe
  0 siblings, 1 reply; 6+ messages in thread
From: Artyom V. Poptsov @ 2022-05-22 18:54 UTC (permalink / raw)
  To: 55580


[-- Attachment #1.1: Type: text/plain, Size: 209 bytes --]

Hello,

this patch adds "langcodes" Python module[1] under the name
"python-langcodes".

References:
1. "A Python library for working with and comparing language codes."
   https://github.com/rspeer/langcodes

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-Add-python-langcodes.patch --]
[-- Type: text/x-diff, Size: 2003 bytes --]

From 4a55bea39a617c64f354170777db4ba420045459 Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Sun, 22 May 2022 21:50:37 +0300
Subject: [PATCH] gnu: Add python-langcodes

* gnu/packages/python-xyz.scm (python-langcodes): New variable.
---
 gnu/packages/python-xyz.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 3c4fa16d16..95099feb04 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -31449,3 +31449,34 @@ written in C.")
     (synopsis "Cython bindings for MurmurHash2")
     (description "This package provides Cython bindings for MurmurHash2.")
     (license license:expat)))
+
+(define-public python-langcodes
+  (package
+    (name "python-langcodes")
+    (version "3.3.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "langcodes" version))
+              (sha256
+               (base32
+                "1xkyh3qdcigb18qiimbwl2669y22hhdmd89mqcd270c7lbahfkbr"))))
+    (build-system python-build-system)
+    (native-inputs (list python-pytest))
+    (inputs (list python))
+    (home-page "https://github.com/explosion/catalogue")
+    (synopsis "Python library for working with language codes")
+    (description
+     "A Python library for working with and comparing language
+codes.
+
+\"langcodes\" implements @url{http://tools.ietf.org/html/bcp47, BCP 47}, the
+IETF Best Current Practices on Tags for Identifying Languages.  BCP 47 is also
+known as RFC 5646.  It subsumes ISO 639 and is backward compatible with it, and
+it also implements recommendations from the @url{http://cldr.unicode.org/,
+Unicode CLDR}.
+
+langcodes can also refer to a database of language properties and names, built
+from Unicode CLDR and the IANA subtag registry, if you install
+@code{language_data}.")
+    (license license:expat)))
+
-- 
2.25.1


[-- Attachment #1.3: Type: text/plain, Size: 207 bytes --]


-- 
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE  B57C E9C5 A2D9 0898 A02F

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#55580] [PATCH] gnu: Add python-langcodes
  2022-05-22 18:54 [bug#55580] [PATCH] gnu: Add python-langcodes Artyom V. Poptsov
@ 2022-06-05 19:00 ` Mathieu Othacehe
  2022-06-07 19:11   ` Artyom V. Poptsov
  0 siblings, 1 reply; 6+ messages in thread
From: Mathieu Othacehe @ 2022-06-05 19:00 UTC (permalink / raw)
  To: Artyom V. Poptsov; +Cc: 55580


Hello Artyom,

> +    (inputs (list python))

This line is implicit, you can remove it.

> +    (home-page "https://github.com/explosion/catalogue")

Is that the correct home-page?

> +     "A Python library for working with and comparing language
> +codes.

You can merge those lines.

> +
> +\"langcodes\" implements @url{http://tools.ietf.org/html/bcp47, BCP 47}, the

@code{python-langcodes} implements...

> +langcodes can also refer to a database of language properties and names, built

@code{python-langcodes} can also...

> +from Unicode CLDR and the IANA subtag registry, if you install
> +@code{language_data}.")

That could be @code{python-language-data} is the package is created, I
guess :)

Could you please send an updated version?

Thanks,

Mathieu




^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#55580] [PATCH] gnu: Add python-langcodes
  2022-06-05 19:00 ` Mathieu Othacehe
@ 2022-06-07 19:11   ` Artyom V. Poptsov
  2022-06-07 19:24     ` Artyom V. Poptsov
  0 siblings, 1 reply; 6+ messages in thread
From: Artyom V. Poptsov @ 2022-06-07 19:11 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: 55580


[-- Attachment #1.1: Type: text/plain, Size: 86 bytes --]

Hello Mathieu,

thank you for the patch review.

Here's the updated patch.

- Artyom


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-Add-python-langcodes.patch --]
[-- Type: text/x-diff, Size: 2014 bytes --]

From fade3d87c1b64e4279787d2bb28b0e61d2b7ee61 Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Sun, 22 May 2022 21:50:37 +0300
Subject: [PATCH] gnu: Add python-langcodes

* gnu/packages/python-xyz.scm (python-langcodes): New variable.
---
 gnu/packages/python-xyz.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f3d7fab973..82c2c87e4c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -29403,3 +29403,32 @@ Information about these scales can be
 @url{https://en.wikipedia.org/wiki/List_of_musical_scales_and_modes, found on
 Wikipedia}.")
     (license license:expat)))
+
+(define-public python-langcodes
+  (package
+    (name "python-langcodes")
+    (version "3.3.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "langcodes" version))
+              (sha256
+               (base32
+                "1xkyh3qdcigb18qiimbwl2669y22hhdmd89mqcd270c7lbahfkbr"))))
+    (build-system python-build-system)
+    (native-inputs (list python-pytest))
+    (inputs (list python))
+    (home-page "https://github.com/rspeer/langcodes")
+    (synopsis "Python library for working with language codes")
+    (description
+     "A Python library for working with and comparing language codes.
+
+@code{python-langcodes} implements @url{http://tools.ietf.org/html/bcp47, BCP
+47}, the IETF Best Current Practices on Tags for Identifying Languages.  BCP
+47 is also known as RFC 5646.  It subsumes ISO 639 and is backward compatible
+with it, and it also implements recommendations from the
+@url{http://cldr.unicode.org/, Unicode CLDR}.
+
+@code{python-langcodes} can also refer to a database of language properties
+and names, built from Unicode CLDR and the IANA subtag registry, if you
+install @code{python-language-data}.")
+    (license license:expat)))
-- 
2.25.1


[-- Attachment #1.3: Type: text/plain, Size: 207 bytes --]


-- 
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE  B57C E9C5 A2D9 0898 A02F

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#55580] [PATCH] gnu: Add python-langcodes
  2022-06-07 19:11   ` Artyom V. Poptsov
@ 2022-06-07 19:24     ` Artyom V. Poptsov
  2022-06-13  9:13       ` Artyom V. Poptsov
  2022-06-13 10:28       ` bug#55580: " Ludovic Courtès
  0 siblings, 2 replies; 6+ messages in thread
From: Artyom V. Poptsov @ 2022-06-07 19:24 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: 55580


[-- Attachment #1.1: Type: text/plain, Size: 98 bytes --]

Oh, I forgot to remote 'python' from inputs.

Please find double-fixed patch attached.

- Artyom


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-Add-python-langcodes.patch --]
[-- Type: text/x-diff, Size: 1984 bytes --]

From 1e6e6361d3c4cb007f8cd160797b8c4a1f7aacdc Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Sun, 22 May 2022 21:50:37 +0300
Subject: [PATCH] gnu: Add python-langcodes

* gnu/packages/python-xyz.scm (python-langcodes): New variable.
---
 gnu/packages/python-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f3d7fab973..628bce5d8f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -29403,3 +29403,31 @@ Information about these scales can be
 @url{https://en.wikipedia.org/wiki/List_of_musical_scales_and_modes, found on
 Wikipedia}.")
     (license license:expat)))
+
+(define-public python-langcodes
+  (package
+    (name "python-langcodes")
+    (version "3.3.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "langcodes" version))
+              (sha256
+               (base32
+                "1xkyh3qdcigb18qiimbwl2669y22hhdmd89mqcd270c7lbahfkbr"))))
+    (build-system python-build-system)
+    (native-inputs (list python-pytest))
+    (home-page "https://github.com/rspeer/langcodes")
+    (synopsis "Python library for working with language codes")
+    (description
+     "A Python library for working with and comparing language codes.
+
+@code{python-langcodes} implements @url{http://tools.ietf.org/html/bcp47, BCP
+47}, the IETF Best Current Practices on Tags for Identifying Languages.  BCP
+47 is also known as RFC 5646.  It subsumes ISO 639 and is backward compatible
+with it, and it also implements recommendations from the
+@url{http://cldr.unicode.org/, Unicode CLDR}.
+
+@code{python-langcodes} can also refer to a database of language properties
+and names, built from Unicode CLDR and the IANA subtag registry, if you
+install @code{python-language-data}.")
+    (license license:expat)))
-- 
2.25.1


[-- Attachment #1.3: Type: text/plain, Size: 207 bytes --]


-- 
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE  B57C E9C5 A2D9 0898 A02F

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#55580] [PATCH] gnu: Add python-langcodes
  2022-06-07 19:24     ` Artyom V. Poptsov
@ 2022-06-13  9:13       ` Artyom V. Poptsov
  2022-06-13 10:28       ` bug#55580: " Ludovic Courtès
  1 sibling, 0 replies; 6+ messages in thread
From: Artyom V. Poptsov @ 2022-06-13  9:13 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: 55580

[-- Attachment #1: Type: text/plain, Size: 301 bytes --]

Hello Mathieu,

have you had any chance to review my updated patch?

Thanks!

- Artyom

-- 
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE  B57C E9C5 A2D9 0898 A02F

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#55580: [PATCH] gnu: Add python-langcodes
  2022-06-07 19:24     ` Artyom V. Poptsov
  2022-06-13  9:13       ` Artyom V. Poptsov
@ 2022-06-13 10:28       ` Ludovic Courtès
  1 sibling, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2022-06-13 10:28 UTC (permalink / raw)
  To: Artyom V. Poptsov; +Cc: Mathieu Othacehe, 55580-done

Hi,

"Artyom V. Poptsov" <poptsov.artyom@gmail.com> skribis:

> From 1e6e6361d3c4cb007f8cd160797b8c4a1f7aacdc Mon Sep 17 00:00:00 2001
> From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
> Date: Sun, 22 May 2022 21:50:37 +0300
> Subject: [PATCH] gnu: Add python-langcodes
>
> * gnu/packages/python-xyz.scm (python-langcodes): New variable.

I made the beginning of the description a sentence and committed it.

Thanks,
Ludo’.




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-06-13 10:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-22 18:54 [bug#55580] [PATCH] gnu: Add python-langcodes Artyom V. Poptsov
2022-06-05 19:00 ` Mathieu Othacehe
2022-06-07 19:11   ` Artyom V. Poptsov
2022-06-07 19:24     ` Artyom V. Poptsov
2022-06-13  9:13       ` Artyom V. Poptsov
2022-06-13 10:28       ` bug#55580: " Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.