unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add python-mako.
@ 2016-02-18  1:05 Thompson, David
  2016-02-18  1:49 ` Leo Famulari
  0 siblings, 1 reply; 3+ messages in thread
From: Thompson, David @ 2016-02-18  1:05 UTC (permalink / raw)
  To: guix-devel

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

The Mako Python library is a dependency for an upcoming release of
Mesa that features Vulkan support.  First time using the new
python2-variant stuff so let me know if I screwed anything up!

- Dave

[-- Attachment #2: 0001-gnu-Add-python-mako.patch --]
[-- Type: text/x-diff, Size: 1725 bytes --]

From 385b618a688668feceb4855e628752506cd737ef Mon Sep 17 00:00:00 2001
From: David Thompson <dthompson2@worcester.edu>
Date: Wed, 17 Feb 2016 20:03:54 -0500
Subject: [PATCH] gnu: Add python-mako.

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

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 3dd3862..2001871 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -7529,3 +7529,32 @@ available in Django, but is a standalone package.")
     (inherit (package-with-python2
               (strip-python2-variant python-wtforms)))
     (inputs `(("python2-setuptools" ,python2-setuptools)))))
+
+(define-public python-mako
+  (package
+    (name "python-mako")
+    (version "1.0.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "Mako" version))
+       (sha256
+        (base32
+         "136kcjbs0s98qkx8a418b05dfblqp0kiiqyx8vhx4rarwc7bqi3n"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-markupsafe" ,python-markupsafe)
+       ("python-mock" ,python-mock)
+       ("python-nose" ,python-nose)))
+    (home-page "http://www.makotemplates.org/")
+    (synopsis "Templating language for Python")
+    (description "Mako is a templating language for Python that compiles
+templates into Python modules.")
+    (license license:expat)
+    (properties `((python2-variant . ,(delay python2-mako))))))
+
+(define-public python2-mako
+  (package
+    (inherit (package-with-python2
+              (strip-python2-variant python-mako)))
+    (inputs `(("python2-setuptools" ,python2-setuptools)))))
-- 
2.6.3


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

* Re: [PATCH] gnu: Add python-mako.
  2016-02-18  1:05 [PATCH] gnu: Add python-mako Thompson, David
@ 2016-02-18  1:49 ` Leo Famulari
  2016-02-18  2:06   ` Thompson, David
  0 siblings, 1 reply; 3+ messages in thread
From: Leo Famulari @ 2016-02-18  1:49 UTC (permalink / raw)
  To: Thompson, David; +Cc: guix-devel

On Wed, Feb 17, 2016 at 08:05:58PM -0500, Thompson, David wrote:
> The Mako Python library is a dependency for an upcoming release of
> Mesa that features Vulkan support.  First time using the new
> python2-variant stuff so let me know if I screwed anything up!
> 
> - Dave

> From 385b618a688668feceb4855e628752506cd737ef Mon Sep 17 00:00:00 2001
> From: David Thompson <dthompson2@worcester.edu>
> Date: Wed, 17 Feb 2016 20:03:54 -0500
> Subject: [PATCH] gnu: Add python-mako.
> 
> * gnu/packages/python.scm (python-mako, python2-mako): New variables.

[...]

> +(define-public python2-mako
> +  (package
> +    (inherit (package-with-python2
> +              (strip-python2-variant python-mako)))
> +    (inputs `(("python2-setuptools" ,python2-setuptools)))))

Wouldn't setuptools be a native-input? If so, there is an example in
python2-wheel. I don't know if that is the *best* example, but it seems
to work.

> -- 
> 2.6.3
> 

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

* Re: [PATCH] gnu: Add python-mako.
  2016-02-18  1:49 ` Leo Famulari
@ 2016-02-18  2:06   ` Thompson, David
  0 siblings, 0 replies; 3+ messages in thread
From: Thompson, David @ 2016-02-18  2:06 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

On Wed, Feb 17, 2016 at 8:49 PM, Leo Famulari <leo@famulari.name> wrote:
> On Wed, Feb 17, 2016 at 08:05:58PM -0500, Thompson, David wrote:
>> The Mako Python library is a dependency for an upcoming release of
>> Mesa that features Vulkan support.  First time using the new
>> python2-variant stuff so let me know if I screwed anything up!
>>
>> - Dave
>
>> From 385b618a688668feceb4855e628752506cd737ef Mon Sep 17 00:00:00 2001
>> From: David Thompson <dthompson2@worcester.edu>
>> Date: Wed, 17 Feb 2016 20:03:54 -0500
>> Subject: [PATCH] gnu: Add python-mako.
>>
>> * gnu/packages/python.scm (python-mako, python2-mako): New variables.
>
> [...]
>
>> +(define-public python2-mako
>> +  (package
>> +    (inherit (package-with-python2
>> +              (strip-python2-variant python-mako)))
>> +    (inputs `(("python2-setuptools" ,python2-setuptools)))))
>
> Wouldn't setuptools be a native-input? If so, there is an example in
> python2-wheel. I don't know if that is the *best* example, but it seems
> to work.

Yeah, this is a typo.  Good catch.  I will push with this change.  Thanks!

- Dave

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

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-18  1:05 [PATCH] gnu: Add python-mako Thompson, David
2016-02-18  1:49 ` Leo Famulari
2016-02-18  2:06   ` Thompson, David

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).