all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#22808: Add a function to simplify many of the new python2-foo definitions
@ 2016-02-25 21:14 Christopher Allan Webber
  2016-02-26 23:26 ` Ludovic Courtès
  2019-01-31 14:39 ` bug#22808: Close Andreas Enge
  0 siblings, 2 replies; 6+ messages in thread
From: Christopher Allan Webber @ 2016-02-25 21:14 UTC (permalink / raw)
  To: 22808

Right now we have a lot of these that look very similar:

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

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

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

Time for an abstraction?

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

end of thread, other threads:[~2019-01-31 14:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-25 21:14 bug#22808: Add a function to simplify many of the new python2-foo definitions Christopher Allan Webber
2016-02-26 23:26 ` Ludovic Courtès
2016-04-26  9:54   ` Ludovic Courtès
2016-04-26 12:44     ` Efraim Flashner
2016-04-26 13:09       ` Ludovic Courtès
2019-01-31 14:39 ` bug#22808: Close Andreas Enge

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.