unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH 17/18] gnu: Add python-translitcodec.
@ 2016-02-15 23:33 Christopher Allan Webber
  2016-02-16  2:06 ` Leo Famulari
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Allan Webber @ 2016-02-15 23:33 UTC (permalink / raw)
  To: guix-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0017-gnu-Add-python-translitcodec.patch --]
[-- Type: text/x-patch, Size: 1963 bytes --]

From 4194f0b325d64718529275906ffe8294e8fb6111 Mon Sep 17 00:00:00 2001
From: Christopher Allan Webber <cwebber@dustycloud.org>
Date: Sun, 14 Feb 2016 16:23:11 -0800
Subject: [PATCH 17/18] gnu: Add python-translitcodec.

* gnu/packages/python.scm (python-translitcodec, python2-translitcodec):
  New variables.
---
 gnu/packages/python.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index efe0229..2cb87bc 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8045,3 +8045,35 @@ synchronously (wait until ready).")
                        ("python2-unittest2" ,python2-unittest2)
                        ("python2-mock" ,python2-mock)
                        ,@(package-native-inputs celery))))))
+
+(define-public python-translitcodec
+  (package
+    (name "python-translitcodec")
+    (version "0.4.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "translitcodec" version))
+       (sha256
+        (base32
+         "10x6pvblkzky1zhjs8nmx64nb9jdzxad4bxhq4iwv0j4z2aqjnki"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:tests? #f))  ; no tests provided
+    (home-page
+     "https://github.com/claudep/translitcodec")
+    (synopsis
+     "Unicode to 8-bit charset transliteration codec")
+    (description
+     "This package contains codecs for transliterating ISO 10646 texts into
+best-effort representations using smaller coded character sets (ASCII,
+ISO 8859, etc.).  The translation tables used by the codecs are from
+the 'transtab' collection by Markus Kuhn.")
+    (license license:expat)
+    (properties `((python2-variant . ,(delay python2-translitcodec))))))
+
+(define-public python2-translitcodec
+  (package
+    (inherit (package-with-python2
+              (strip-python2-variant python-translitcodec)))
+    (inputs `(("python2-setuptools" ,python2-setuptools)))))
-- 
2.6.3

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

* Re: [PATCH 17/18] gnu: Add python-translitcodec.
  2016-02-15 23:33 [PATCH 17/18] gnu: Add python-translitcodec Christopher Allan Webber
@ 2016-02-16  2:06 ` Leo Famulari
  2016-02-20  0:43   ` Christopher Allan Webber
  0 siblings, 1 reply; 4+ messages in thread
From: Leo Famulari @ 2016-02-16  2:06 UTC (permalink / raw)
  To: Christopher Allan Webber; +Cc: guix-devel

On Mon, Feb 15, 2016 at 03:33:27PM -0800, Christopher Allan Webber wrote:
> From 4194f0b325d64718529275906ffe8294e8fb6111 Mon Sep 17 00:00:00 2001
> From: Christopher Allan Webber <cwebber@dustycloud.org>
> Date: Sun, 14 Feb 2016 16:23:11 -0800
> Subject: [PATCH 17/18] gnu: Add python-translitcodec.
> 
> * gnu/packages/python.scm (python-translitcodec, python2-translitcodec):
>   New variables.
> ---
>  gnu/packages/python.scm | 32 ++++++++++++++++++++++++++++++++
>  1 file changed, 32 insertions(+)
> 
> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
> index efe0229..2cb87bc 100644
> --- a/gnu/packages/python.scm
> +++ b/gnu/packages/python.scm
> @@ -8045,3 +8045,35 @@ synchronously (wait until ready).")
>                         ("python2-unittest2" ,python2-unittest2)
>                         ("python2-mock" ,python2-mock)
>                         ,@(package-native-inputs celery))))))
> +
> +(define-public python-translitcodec
> +  (package
> +    (name "python-translitcodec")
> +    (version "0.4.0")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (pypi-uri "translitcodec" version))
> +       (sha256
> +        (base32
> +         "10x6pvblkzky1zhjs8nmx64nb9jdzxad4bxhq4iwv0j4z2aqjnki"))))
> +    (build-system python-build-system)
> +    (arguments
> +     `(#:tests? #f))  ; no tests provided
> +    (home-page
> +     "https://github.com/claudep/translitcodec")
> +    (synopsis
> +     "Unicode to 8-bit charset transliteration codec")
> +    (description
> +     "This package contains codecs for transliterating ISO 10646 texts into
> +best-effort representations using smaller coded character sets (ASCII,
> +ISO 8859, etc.).  The translation tables used by the codecs are from
> +the 'transtab' collection by Markus Kuhn.")

Do we need to attribute Mr. Kuhn here? AFAIK we don't normally do this.

> +    (license license:expat)
> +    (properties `((python2-variant . ,(delay python2-translitcodec))))))
> +
> +(define-public python2-translitcodec
> +  (package
> +    (inherit (package-with-python2
> +              (strip-python2-variant python-translitcodec)))
> +    (inputs `(("python2-setuptools" ,python2-setuptools)))))
> -- 
> 2.6.3
> 
> 

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

* Re: [PATCH 17/18] gnu: Add python-translitcodec.
  2016-02-16  2:06 ` Leo Famulari
@ 2016-02-20  0:43   ` Christopher Allan Webber
  2016-02-20  2:37     ` Christopher Allan Webber
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Allan Webber @ 2016-02-20  0:43 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

Leo Famulari writes:

> On Mon, Feb 15, 2016 at 03:33:27PM -0800, Christopher Allan Webber wrote:
>> From 4194f0b325d64718529275906ffe8294e8fb6111 Mon Sep 17 00:00:00 2001
>> From: Christopher Allan Webber <cwebber@dustycloud.org>
>> Date: Sun, 14 Feb 2016 16:23:11 -0800
>> Subject: [PATCH 17/18] gnu: Add python-translitcodec.
>> 
>> * gnu/packages/python.scm (python-translitcodec, python2-translitcodec):
>>   New variables.
>> ---
>>  gnu/packages/python.scm | 32 ++++++++++++++++++++++++++++++++
>>  1 file changed, 32 insertions(+)
>> 
>> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
>> index efe0229..2cb87bc 100644
>> --- a/gnu/packages/python.scm
>> +++ b/gnu/packages/python.scm
>> @@ -8045,3 +8045,35 @@ synchronously (wait until ready).")
>>                         ("python2-unittest2" ,python2-unittest2)
>>                         ("python2-mock" ,python2-mock)
>>                         ,@(package-native-inputs celery))))))
>> +
>> +(define-public python-translitcodec
>> +  (package
>> +    (name "python-translitcodec")
>> +    (version "0.4.0")
>> +    (source
>> +     (origin
>> +       (method url-fetch)
>> +       (uri (pypi-uri "translitcodec" version))
>> +       (sha256
>> +        (base32
>> +         "10x6pvblkzky1zhjs8nmx64nb9jdzxad4bxhq4iwv0j4z2aqjnki"))))
>> +    (build-system python-build-system)
>> +    (arguments
>> +     `(#:tests? #f))  ; no tests provided
>> +    (home-page
>> +     "https://github.com/claudep/translitcodec")
>> +    (synopsis
>> +     "Unicode to 8-bit charset transliteration codec")
>> +    (description
>> +     "This package contains codecs for transliterating ISO 10646 texts into
>> +best-effort representations using smaller coded character sets (ASCII,
>> +ISO 8859, etc.).  The translation tables used by the codecs are from
>> +the 'transtab' collection by Markus Kuhn.")
>
> Do we need to attribute Mr. Kuhn here? AFAIK we don't normally do this.

We don't have to.  I snarfed that from the translitcodec description.
It can be easily removed... in fact, done.

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

* Re: [PATCH 17/18] gnu: Add python-translitcodec.
  2016-02-20  0:43   ` Christopher Allan Webber
@ 2016-02-20  2:37     ` Christopher Allan Webber
  0 siblings, 0 replies; 4+ messages in thread
From: Christopher Allan Webber @ 2016-02-20  2:37 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0016-gnu-Add-python-translitcodec.patch --]
[-- Type: text/x-diff, Size: 1874 bytes --]

From a80923d359965a1694f9417e17186e0f5c696785 Mon Sep 17 00:00:00 2001
From: Christopher Allan Webber <cwebber@dustycloud.org>
Date: Sun, 14 Feb 2016 16:23:11 -0800
Subject: [PATCH 16/18] gnu: Add python-translitcodec.

* gnu/packages/python.scm (python-translitcodec, python2-translitcodec):
  New variables.
---
 gnu/packages/python.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 48946a7..ab7b276 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8046,3 +8046,34 @@ synchronously (wait until ready).")
                        ("python2-unittest2" ,python2-unittest2)
                        ("python2-mock" ,python2-mock)
                        ,@(package-native-inputs celery))))))
+
+(define-public python-translitcodec
+  (package
+    (name "python-translitcodec")
+    (version "0.4.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "translitcodec" version))
+       (sha256
+        (base32
+         "10x6pvblkzky1zhjs8nmx64nb9jdzxad4bxhq4iwv0j4z2aqjnki"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:tests? #f))  ; no tests provided
+    (home-page
+     "https://github.com/claudep/translitcodec")
+    (synopsis
+     "Unicode to 8-bit charset transliteration codec")
+    (description
+     "This package contains codecs for transliterating ISO 10646 texts into
+best-effort representations using smaller coded character sets (ASCII,
+ISO 8859, etc.).")
+    (license license:expat)
+    (properties `((python2-variant . ,(delay python2-translitcodec))))))
+
+(define-public python2-translitcodec
+  (package
+    (inherit (package-with-python2
+              (strip-python2-variant python-translitcodec)))
+    (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
-- 
2.6.3

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

end of thread, other threads:[~2016-02-20  2:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-15 23:33 [PATCH 17/18] gnu: Add python-translitcodec Christopher Allan Webber
2016-02-16  2:06 ` Leo Famulari
2016-02-20  0:43   ` Christopher Allan Webber
2016-02-20  2:37     ` Christopher Allan Webber

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).