unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add python-jedi.
@ 2016-07-09 11:42 Danny Milosavljevic
  2016-07-09 12:48 ` [PATCH v2] " Danny Milosavljevic
  0 siblings, 1 reply; 4+ messages in thread
From: Danny Milosavljevic @ 2016-07-09 11:42 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/python.scm (python-jedi, python2-jedi): New variables.

Signed-off-by: Danny Milosavljevic <dannym+a@scratchpost.org>
---
 gnu/packages/python.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index ccbed0f..54ec25f 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9724,3 +9724,34 @@ characters, mouse support, and auto suggestions.")
       (native-inputs
        `(("python2-setuptools" ,python2-setuptools)
          ,@(package-native-inputs base))))))
+
+(define-public python-jedi
+  (package
+    (name "python-jedi")
+    (version "0.9.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append
+               "https://pypi.python.org/packages/3a/37/629080b92b87bc65e3b1b4f5d539e22aa5dc45637eab0dd4b0cd8cf236c2/jedi-"
+               version
+               ".tar.gz"))
+        (sha256
+          (base32
+            "0c8x962ynpx001fdvp07m2q5jk4igkxbj3rmnydavphvlgxijk1v"))))
+    (build-system python-build-system)
+    (home-page "https://github.com/davidhalter/jedi")
+    (synopsis
+      "Autocompletion for Python that can be used for text editors")
+    (description
+      "Jedi is an autocompletion tool for Python that can be used for text editors.")
+    (license expat)
+    (properties `((python2-variant . ,(delay python2-jedi))))))
+
+(define-public python2-jedi
+  (let ((base (package-with-python2 (strip-python2-variant python-jedi))))
+    (package
+      (inherit base)
+      (native-inputs
+       `(("python2-setuptools" ,python2-setuptools)
+         ,@(package-native-inputs base))))))

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

* [PATCH v2] gnu: Add python-jedi.
  2016-07-09 11:42 [PATCH] gnu: Add python-jedi Danny Milosavljevic
@ 2016-07-09 12:48 ` Danny Milosavljevic
  2016-07-09 18:13   ` Leo Famulari
  2016-10-24 21:03   ` Leo Famulari
  0 siblings, 2 replies; 4+ messages in thread
From: Danny Milosavljevic @ 2016-07-09 12:48 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/python.scm (python-jedi, python2-jedi): New variables.

Signed-off-by: Danny Milosavljevic <dannym+a@scratchpost.org>
---
 gnu/packages/python.scm | 34 +++++++++++++++++++++++++++++++++-
 1 file changed, 33 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index ccbed0f..ffd4d56 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -45,7 +45,7 @@
                 #:select (asl2.0 bsd-4 bsd-3 bsd-2 non-copyleft cc0 x11 x11-style
                           gpl2 gpl2+ gpl3 gpl3+ lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3+ agpl3+
                           isc mpl2.0 psfl public-domain repoze unlicense x11-style
-                          zpl2.1))
+                          zpl2.1 expat))
   #:use-module ((guix licenses) #:select (expat zlib) #:prefix license:)
   #:use-module (gnu packages)
   #:use-module (gnu packages algebra)
@@ -9724,3 +9724,35 @@ characters, mouse support, and auto suggestions.")
       (native-inputs
        `(("python2-setuptools" ,python2-setuptools)
          ,@(package-native-inputs base))))))
+
+(define-public python-jedi
+  (package
+    (name "python-jedi")
+    (version "0.9.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append
+               "https://pypi.python.org/packages/"
+               "3a/37/629080b92b87bc65e3b1b4f5d539e22aa5dc45637eab0dd4b0cd8cf236c2/jedi-"
+               version
+               ".tar.gz"))
+        (sha256
+          (base32
+            "0c8x962ynpx001fdvp07m2q5jk4igkxbj3rmnydavphvlgxijk1v"))))
+    (build-system python-build-system)
+    (home-page "https://github.com/davidhalter/jedi")
+    (synopsis
+      "Autocompletion for Python that can be used for text editors")
+    (description
+      "Jedi is an autocompletion tool for Python that can be used for text editors.")
+    (license expat)
+    (properties `((python2-variant . ,(delay python2-jedi))))))
+
+(define-public python2-jedi
+  (let ((base (package-with-python2 (strip-python2-variant python-jedi))))
+    (package
+      (inherit base)
+      (native-inputs
+       `(("python2-setuptools" ,python2-setuptools)
+         ,@(package-native-inputs base))))))

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

* Re: [PATCH v2] gnu: Add python-jedi.
  2016-07-09 12:48 ` [PATCH v2] " Danny Milosavljevic
@ 2016-07-09 18:13   ` Leo Famulari
  2016-10-24 21:03   ` Leo Famulari
  1 sibling, 0 replies; 4+ messages in thread
From: Leo Famulari @ 2016-07-09 18:13 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: guix-devel

On Sat, Jul 09, 2016 at 02:48:32PM +0200, Danny Milosavljevic wrote:
> * gnu/packages/python.scm (python-jedi, python2-jedi): New variables.

Thanks for this patch! Pushed as a502dfbf with the following changes:

>                  #:select (asl2.0 bsd-4 bsd-3 bsd-2 non-copyleft cc0 x11 x11-style
>                            gpl2 gpl2+ gpl3 gpl3+ lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3+ agpl3+
>                            isc mpl2.0 psfl public-domain repoze unlicense x11-style
> -                          zpl2.1))
> +                          zpl2.1 expat))
>    #:use-module ((guix licenses) #:select (expat zlib) #:prefix license:)

We need to use (license license:expat) to use the Expat license in
(gnu packages python), to avoid ambiguity between the license and the
package. So, I removed this change and adjusted the license field in
python-jedi.

> +        (uri (string-append
> +               "https://pypi.python.org/packages/"
> +               "3a/37/629080b92b87bc65e3b1b4f5d539e22aa5dc45637eab0dd4b0cd8cf236c2/jedi-"
> +               version
> +               ".tar.gz"))

Pypi-uri works again, so I made it use that instead.

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

* Re: [PATCH v2] gnu: Add python-jedi.
  2016-07-09 12:48 ` [PATCH v2] " Danny Milosavljevic
  2016-07-09 18:13   ` Leo Famulari
@ 2016-10-24 21:03   ` Leo Famulari
  1 sibling, 0 replies; 4+ messages in thread
From: Leo Famulari @ 2016-10-24 21:03 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: guix-devel

On Sat, Jul 09, 2016 at 02:48:32PM +0200, Danny Milosavljevic wrote:
> * gnu/packages/python.scm (python-jedi, python2-jedi): New variables.

This package is failing to build on core-updates:

https://hydra.gnu.org/job/gnu/core-updates-2/python-jedi-0.9.0.x86_64-linux

Can you take a look?

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

end of thread, other threads:[~2016-10-24 21:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-09 11:42 [PATCH] gnu: Add python-jedi Danny Milosavljevic
2016-07-09 12:48 ` [PATCH v2] " Danny Milosavljevic
2016-07-09 18:13   ` Leo Famulari
2016-10-24 21:03   ` Leo Famulari

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