all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Python2-only packages (shedskin)
@ 2016-03-29 20:24 Danny Milosavljevic
  2016-03-29 20:57 ` Leo Famulari
  0 siblings, 1 reply; 2+ messages in thread
From: Danny Milosavljevic @ 2016-03-29 20:24 UTC (permalink / raw)
  To: guix-devel

Hi,

I'm trying to package shedskin, a Python 2 native (to C++) compiler.

It only supports python2 in upstream.

If I package it the usual way (like other Python packages in Guix), python2-shedskin works fine, however, python-shedskin won't and basically shouldn't be there.

How to best proceed?

What I have:

(define-public python-shedskin
 (package
  (name "python-shedskin")
  (version "0.9.4")
  (source
    (origin
      (method url-fetch)
      (uri (string-append "https://github.com/shedskin/shedskin/releases/download/v" version "/shedskin-0.9.4.tgz"))
      (sha256
        (base32
          "0nzwrzgw1ga8rw6f0ryq7zr9kkiavd1cqz5hzxkcbicl1dk7kz41"))))
  (build-system python-build-system)
  (inputs `(("python-setuptools" ,python-setuptools)
            ("libgc" ,libgc)))
  (propagated-inputs `(("pcre" ,pcre)))
  (home-page "https://shedskin.github.io/")
  (synopsis "Python Native Compiler")
  (description "This is a native compiler for a subset of Python.")
  (license (list gpl3 bsd-3 expat))
))

(define-public python2-shedskin
  (let ((shedskin (package-with-python2
                     (strip-python2-variant python-shedskin))))
    (package (inherit shedskin)
      (native-inputs `(("python2-setuptools" ,python2-setuptools)
                       ,@(package-native-inputs shedskin))))))

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

end of thread, other threads:[~2016-03-29 20:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-29 20:24 Python2-only packages (shedskin) Danny Milosavljevic
2016-03-29 20:57 ` Leo Famulari

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.