GNU bug report logs - #35893
guix import json does not specify input package's output when provided in the json

Previous Next

Package: guix;

Reported by: Jesse Gibbons <jgibbons2357 <at> gmail.com>

Date: Sat, 25 May 2019 00:56:02 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 35893 in the body.
You can then email your comments to 35893 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#35893; Package guix. (Sat, 25 May 2019 00:56:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jesse Gibbons <jgibbons2357 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 25 May 2019 00:56:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jesse Gibbons <jgibbons2357 <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: guix import json does not specify input package's output when
 provided in the json
Date: Fri, 24 May 2019 18:49:29 -0600
I'm trying to generate a package definition from the following json:

{
    "name" : "pysolfc",
    "version" : "2.6.4",
    "source" : "https://github.com/shlomif/PySolFC/archive/pysolfc-2.6.4.tar.gz"
    "build-system" : "python",
    "home-page" : "https://pysolfc.sourceforge.io/",
    "synopsis" : "Solitaire Collection, Written in Python",
    "description" : "PySol Fan Club Edition (PySolFC) is a collection of more than 1000 solitaire card games. It is a fork of PySol Solitaire.",
    "license" : "GPL-3.0+",
    "inputs" : ["python2:tk"],
    "propagated-inputs" : ["python2-six"]
}


==========
When I run guix import json pysolfc.json >> pysolfc.scm and define the
output as a public package, I get the following:

(define-module (custom packages pysolfc)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system python)
  #:use-module (guix licenses))

(define-public pysolfc
(package
  (name "pysolfc")
  (version "2.6.4")
  (source
    (origin
      (method url-fetch)
      (uri (string-append
             "https://github.com/shlomif/PySolFC/archive/pysolfc-"
             version
             ".tar.gz"))
      (sha256
        (base32
          "17r9mbn4fj6kbxhllsab74gfjac0j2mjdwkkwaxp6cqpy4dss3z8"))))
  (build-system python-build-system)
  (inputs
    `(("python2" ,(@ (gnu packages python) python-2))))
  (propagated-inputs
    `(("python2-six"
       ,(@ (gnu packages python-xyz) python2-six))))
  (home-page "https://pysolfc.sourceforge.io/")
  (synopsis
    "Solitaire Collection, Written in Python")
  (description
    "PySol Fan Club Edition (PySolFC) is a collection of more than 1000 solitaire card games. It is a fork of PySol Solitaire.")
  (license gpl3+))
)

====================
When I try to build this I get the following error:

    import _tkinter # If this fails your Python may not be configured
for Tk ModuleNotFoundError: No module named '_tkinter'
====================

Conclusion: guix import json doesn't specify the output required by the
json.




Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Fri, 07 Jun 2019 21:18:01 GMT) Full text and rfc822 format available.

Notification sent to Jesse Gibbons <jgibbons2357 <at> gmail.com>:
bug acknowledged by developer. (Fri, 07 Jun 2019 21:18:01 GMT) Full text and rfc822 format available.

Message #10 received at 35893-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Jesse Gibbons <jgibbons2357 <at> gmail.com>
Cc: 35893-done <at> debbugs.gnu.org
Subject: Re: bug#35893: guix import json does not specify input package's
 output when provided in the json
Date: Fri, 07 Jun 2019 23:17:29 +0200
Hi Jesse,

Jesse Gibbons <jgibbons2357 <at> gmail.com> skribis:

> I'm trying to generate a package definition from the following json:
>
> {
>     "name" : "pysolfc",
>     "version" : "2.6.4",
>     "source" : "https://github.com/shlomif/PySolFC/archive/pysolfc-2.6.4.tar.gz"
>     "build-system" : "python",
>     "home-page" : "https://pysolfc.sourceforge.io/",
>     "synopsis" : "Solitaire Collection, Written in Python",
>     "description" : "PySol Fan Club Edition (PySolFC) is a collection of more than 1000 solitaire card games. It is a fork of PySol Solitaire.",
>     "license" : "GPL-3.0+",
>     "inputs" : ["python2:tk"],
>     "propagated-inputs" : ["python2-six"]
> }

[...]

> Conclusion: guix import json doesn't specify the output required by the
> json.

Fixed in c0a4db66976dc63decbd612aafb934f44629e321.

Thanks,
Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 06 Jul 2019 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 296 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.