unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Danny Milosavljevic <dannym@scratchpost.org>
To: guix-devel@gnu.org
Subject: Question about  (properties `((python2-variant . ,(delay XXX)))) and name resolution
Date: Tue, 19 Jul 2016 19:47:54 +0200	[thread overview]
Message-ID: <20160719194754.254cf411@scratchpost.org> (raw)

Hi,

in the process of packaging ptpython I ran into the following problem:

   ;;; Failed to autoload canonical-package in (gnu packages base):
   ;;; ERROR: Unbound variable: ptpython-2

... while I did the following patch to gnu/packages/python.scm :

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index b9d61dd..5bb6b27 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9750,3 +9750,34 @@ characters, mouse support, and auto suggestions.")
       (native-inputs
        `(("python2-setuptools" ,python2-setuptools)
          ,@(package-native-inputs base))))))
+
+(define-public ptpython
+  (package
+    (name "ptpython")
+    (version "0.34")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "ptpython" version))
+        (sha256
+          (base32
+            "1mmbiyzf0n8hm7z2a562x7w5cbl6jc0zsk6vp40q1z4cyblv1k13"))))
+    (build-system python-build-system)
+    (inputs
+      `(("python-docopt" ,python-docopt)
+        ("python-jedi" ,python-jedi)
+        ("python-prompt-toolkit" ,python-prompt-toolkit)
+        ("python-pygments" ,python-pygments)
+        ("python-setuptools" ,python-setuptools)))
+    (home-page
+      "https://github.com/jonathanslenders/ptpython")
+    (synopsis
+      "Python REPL build on top of prompt_toolkit")
+    (description
+      "Python REPL build on top of prompt_toolkit")
+    (license bsd-3)
+    (properties `((python2-variant . ,(delay ptpython-2))))
+))
+
+(define-public ptpython-2
+  (package-with-python2 ptpython))

What does it mean?

             reply	other threads:[~2016-07-19 17:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-19 17:47 Danny Milosavljevic [this message]
2016-07-20  3:58 ` Question about (properties `((python2-variant . , (delay XXX)))) and name resolution Leo Famulari
2016-07-20  7:26   ` Question about (properties `((python2-variant . ,(delay " Danny Milosavljevic
2016-07-20 10:15     ` Question about (properties `((python2-variant . , (delay " Ricardo Wurmus
2016-07-20 21:10       ` Question about (properties `((python2-variant . ,(delay " Danny Milosavljevic
2016-07-20 10:17     ` Question about (properties `((python2-variant . , (delay " Ludovic Courtès
2016-07-22  8:59       ` Installing incompatible major versions of packages alongside each other Danny Milosavljevic
2016-07-22 13:02         ` Ludovic Courtès
2016-07-22 14:14           ` Leo Famulari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160719194754.254cf411@scratchpost.org \
    --to=dannym@scratchpost.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).