2013-01-14 21:29:28 -05:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
|
2018-01-01 12:03:17 -05:00
|
|
|
;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
|
2016-04-06 14:49:40 -04:00
|
|
|
;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr>
|
2015-02-03 00:31:03 -05:00
|
|
|
;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
|
2019-01-22 23:00:50 -05:00
|
|
|
;;; Copyright © 2014, 2017, 2019 Eric Bavier <bavier@member.fsf.org>
|
2015-01-14 12:04:17 -05:00
|
|
|
;;; Copyright © 2014, 2015 Federico Beffa <beffa@fbengineering.ch>
|
2015-02-03 00:31:03 -05:00
|
|
|
;;; Copyright © 2015 Omar Radwan <toxemicsquire4@gmail.com>
|
2015-02-03 19:02:20 -05:00
|
|
|
;;; Copyright © 2015 Pierre-Antoine Rault <par@rigelk.eu>
|
2019-01-02 10:29:51 -05:00
|
|
|
;;; Copyright © 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
|
2016-02-05 22:07:11 -05:00
|
|
|
;;; Copyright © 2015, 2016 Christopher Allan Webber <cwebber@dustycloud.org>
|
2015-07-25 15:31:05 -04:00
|
|
|
;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
|
2015-12-07 16:18:35 -05:00
|
|
|
;;; Copyright © 2015, 2016 David Thompson <davet@gnu.org>
|
2017-01-02 19:34:18 -05:00
|
|
|
;;; Copyright © 2015, 2016, 2017 Leo Famulari <leo@famulari.name>
|
2017-08-04 22:09:56 -04:00
|
|
|
;;; Copyright © 2015, 2017 Ben Woodcroft <donttrustben@gmail.com>
|
2016-01-01 15:28:46 -05:00
|
|
|
;;; Copyright © 2015, 2016 Erik Edrosa <erik.edrosa@gmail.com>
|
2019-01-06 02:43:36 -05:00
|
|
|
;;; Copyright © 2015, 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
|
2017-10-26 17:02:28 -04:00
|
|
|
;;; Copyright © 2015, 2017 Kyle Meyer <kyle@kyleam.com>
|
2016-03-27 22:10:48 -04:00
|
|
|
;;; Copyright © 2015, 2016 Chris Marusich <cmmarusich@gmail.com>
|
2016-02-25 16:26:45 -05:00
|
|
|
;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org>
|
2016-05-21 19:19:42 -04:00
|
|
|
;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
|
2017-01-02 11:31:34 -05:00
|
|
|
;;; Copyright © 2016, 2018 Hartmut Goebel <h.goebel@crazy-compilers.com>
|
2016-06-16 08:08:24 -04:00
|
|
|
;;; Copyright © 2016 Daniel Pimentel <d4n1@d4n1.org>
|
2016-06-23 11:06:52 -04:00
|
|
|
;;; Copyright © 2016 Sou Bunnbu <iyzsong@gmail.com>
|
2017-02-20 01:37:35 -05:00
|
|
|
;;; Copyright © 2016, 2017 Troy Sankey <sankeytms@gmail.com>
|
Correct name and email address for ng0.
* .mailmap, Makefile.am, doc/guix.de.texi, doc/guix.fr.texi,
doc/guix.texi, etc/completion/fish/guix.fish,
gnu/packages/accessibility.scm, gnu/packages/admin.scm,
gnu/packages/audio.scm, gnu/packages/autotools.scm,
gnu/packages/cdrom.scm, gnu/packages/check.scm,
gnu/packages/cinnamon.scm, gnu/packages/compression.scm,
gnu/packages/crypto.scm, gnu/packages/databases.scm,
gnu/packages/django.scm, gnu/packages/dns.scm, gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm, gnu/packages/emacs.scm,
gnu/packages/enlightenment.scm, gnu/packages/erlang.scm,
gnu/packages/fonts.scm, gnu/packages/fontutils.scm,
gnu/packages/forth.scm, gnu/packages/fvwm.scm, gnu/packages/games.scm,
gnu/packages/gl.scm, gnu/packages/gnome.scm, gnu/packages/gnunet.scm,
gnu/packages/gnupg.scm, gnu/packages/gnuzilla.scm, gnu/packages/gtk.scm,
gnu/packages/guile-wm.scm,gnu/packages/guile-xyz.scm,
gnu/packages/haskell-check.scm, gnu/packages/haskell-crypto.scm,
gnu/packages/haskell.scm, gnu/packages/image-viewers.scm,
gnu/packages/image.scm, gnu/packages/irc.scm,
gnu/packages/language.scm, gnu/packages/libcanberra.scm,
gnu/packages/linux.scm, gnu/packages/lisp.scm, gnu/packages/lolcode.scm,
gnu/packages/lxde.scm, gnu/packages/lxqt.scm, gnu/packages/mail.scm,
gnu/packages/markup.scm, gnu/packages/mate.scm, gnu/packages/maths.scm,
gnu/packages/mc.scm, gnu/packages/messaging.scm, gnu/packages/music.scm,
gnu/packages/ncurses.scm, gnu/packages/networking.scm,
gnu/packages/nickle.scm, gnu/packages/openbox.scm, gnu/packages/pdf.scm,
gnu/packages/perl-check.scm, gnu/packages/perl.scm,
gnu/packages/python-compression.scm, gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm, gnu/packages/python-xyz.scm,
gnu/packages/python.scm, gnu/packages/qt.scm, gnu/packages/ruby.scm,
gnu/packages/rust.scm, gnu/packages/scheme.scm,
gnu/packages/serialization.scm, gnu/packages/shells.scm,
gnu/packages/ssh.scm, gnu/packages/suckless.scm, gnu/packages/tbb.scm,
gnu/packages/telephony.scm, gnu/packages/text-editors.scm,
gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tls.scm,
gnu/packages/tor.scm, gnu/packages/version-control.scm,
gnu/packages/video.scm, gnu/packages/vim.scm, gnu/packages/web.scm,
gnu/packages/wm.scm, gnu/packages/xdisorg.scm, gnu/packages/xfce.scm,
gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/services/certbot.scm,
gnu/services/desktop.scm, gnu/services/version-control.scm,
gnu/services/web.scm, guix/import/hackage.scm, guix/licenses.scm:
Correct name and email address for ng0.
Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
2019-03-14 05:33:38 -04:00
|
|
|
;;; Copyright © 2016, 2017 ng0 <ng0@n0.is>
|
2016-08-13 16:22:49 -04:00
|
|
|
;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org>
|
2016-08-05 13:21:17 -04:00
|
|
|
;;; Copyright © 2016 David Craven <david@craven.ch>
|
2019-03-23 10:31:09 -04:00
|
|
|
;;; Copyright © 2016, 2017, 2018, 2019 Marius Bakke <mbakke@fastmail.com>
|
2017-05-25 15:24:52 -04:00
|
|
|
;;; Copyright © 2016, 2017 Stefan Reichör <stefan@xsteve.at>
|
2016-08-13 15:23:31 -04:00
|
|
|
;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org>
|
2017-11-08 09:49:53 -05:00
|
|
|
;;; Copyright © 2016, 2017 Alex Vong <alexvong1995@gmail.com>
|
2018-03-27 11:29:03 -04:00
|
|
|
;;; Copyright © 2016, 2017, 2018 Arun Isaac <arunisaac@systemreboot.net>
|
2018-11-02 09:26:31 -04:00
|
|
|
;;; Copyright © 2016, 2017, 2018 Julien Lepiller <julien@lepiller.eu>
|
2018-01-09 22:39:40 -05:00
|
|
|
;;; Copyright © 2016, 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
2017-02-21 07:33:20 -05:00
|
|
|
;;; Copyright © 2016, 2017 Thomas Danckaert <post@thomasdanckaert.be>
|
2017-01-21 23:46:08 -05:00
|
|
|
;;; Copyright © 2017 Carlo Zancanaro <carlo@zancanaro.id.au>
|
2017-02-09 12:48:32 -05:00
|
|
|
;;; Copyright © 2017 Frederick M. Muriithi <fredmanglis@gmail.com>
|
2018-01-22 12:55:12 -05:00
|
|
|
;;; Copyright © 2017, 2018 Adriano Peluso <catonano@gmail.com>
|
2017-04-18 12:16:18 -04:00
|
|
|
;;; Copyright © 2017 Ben Sturmfels <ben@sturm.com.au>
|
2018-05-23 04:09:26 -04:00
|
|
|
;;; Copyright © 2017, 2018 Mathieu Othacehe <m.othacehe@gmail.com>
|
2017-05-23 11:53:11 -04:00
|
|
|
;;; Copyright © 2017 José Miguel Sánchez García <jmi2k@openmailbox.org>
|
2017-06-21 04:36:07 -04:00
|
|
|
;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
|
2018-01-14 20:13:13 -05:00
|
|
|
;;; Copyright © 2017, 2018 Kei Kebreau <kkebreau@posteo.net>
|
2017-06-22 23:43:09 -04:00
|
|
|
;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
|
2017-07-18 04:37:05 -04:00
|
|
|
;;; Copyright © 2017 Muriithi Frederick Muriuki <fredmanglis@gmail.com>
|
2019-05-03 12:42:32 -04:00
|
|
|
;;; Copyright © 2017 Brendan Tildesley <mail@brendan.scot>
|
2018-02-05 17:55:34 -05:00
|
|
|
;;; Copyright © 2018 Ethan R. Jones <ethanrjones97@gmail.com
|
2018-01-21 13:37:57 -05:00
|
|
|
;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
|
2018-03-19 12:50:25 -04:00
|
|
|
;;; Copyright © 2018 Vijayalakshmi Vedantham <vijimay12@gmail.com>
|
2018-03-31 17:19:12 -04:00
|
|
|
;;; Copyright © 2018 Mathieu Lirzin <mthl@gnu.org>
|
2018-04-04 02:09:28 -04:00
|
|
|
;;; Copyright © 2018 Adam Massmann <massmannak@gmail.com>
|
2018-04-16 05:04:19 -04:00
|
|
|
;;; Copyright © 2016, 2018 Tomáš Čech <sleep_walker@gnu.org>
|
2018-04-22 17:59:57 -04:00
|
|
|
;;; Copyright © 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr>
|
2018-04-28 11:24:31 -04:00
|
|
|
;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com>
|
2018-06-13 19:13:02 -04:00
|
|
|
;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
|
2019-04-17 23:39:39 -04:00
|
|
|
;;; Copyright © 2018, 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
2018-10-21 17:45:52 -04:00
|
|
|
;;; Copyright © 2018 Luther Thompson <lutheroto@gmail.com>
|
2018-12-15 17:23:41 -05:00
|
|
|
;;; Copyright © 2018 Vagrant Cascadian <vagrant@debian.org>
|
2019-11-19 03:50:51 -05:00
|
|
|
;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
|
2018-04-04 02:09:28 -04:00
|
|
|
;;;
|
2013-01-14 21:29:28 -05:00
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2013-01-17 19:06:24 -05:00
|
|
|
(define-module (gnu packages python)
|
2016-08-05 13:21:17 -04:00
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2013-04-05 18:28:39 -04:00
|
|
|
#:use-module (gnu packages)
|
2019-07-09 14:59:58 -04:00
|
|
|
#:use-module (gnu packages base)
|
2016-10-15 22:44:29 -04:00
|
|
|
#:use-module (gnu packages bash)
|
2013-01-17 19:06:24 -05:00
|
|
|
#:use-module (gnu packages compression)
|
gnu: Move dbm databases to new module.
* gnu/packages/databases.scm (gdbm, bdb, bdb-5.3): Move from here...
* gnu/packages/dbm.scm: ...to this new module.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/audio.scm,
gnu/packages/avahi.scm,
gnu/packages/backup.scm,
gnu/packages/cobol.scm,
gnu/packages/cyrus-sasl.scm,
gnu/packages/databases.scm,
gnu/packages/finance.scm,
gnu/packages/game-development.scm,
gnu/packages/gnome.scm,
gnu/packages/guile.scm,
gnu/packages/ibus.scm,
gnu/packages/kerberos.scm,
gnu/packages/linux.scm,
gnu/packages/mail.scm,
gnu/packages/man.scm,
gnu/packages/nvi.scm,
gnu/packages/openldap.scm,
gnu/packages/package-management.scm,
gnu/packages/php.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python.scm,
gnu/packages/rdf.scm,
gnu/packages/ruby.scm,
gnu/packages/sawfish.scm: Update module references.
2019-01-16 08:48:47 -05:00
|
|
|
#:use-module (gnu packages dbm)
|
2014-01-31 19:39:04 -05:00
|
|
|
#:use-module (gnu packages libffi)
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2015-02-13 15:02:47 -05:00
|
|
|
#:use-module (gnu packages readline)
|
gnu: Move sqlite to separate module.
* gnu/packages/databases.scm (sqlite, sqlite-3.26.0, sqlite-with-fts5,
sqlite-with-column-metadata): Move variables from here...
* gnu/packages/sqlite.scm: ...to this new module.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/apl.scm,
gnu/packages/bittorrent.scm,
gnu/packages/calendar.scm,
gnu/packages/code.scm,
gnu/packages/crypto.scm,
gnu/packages/databases.scm,
gnu/packages/dc.scm,
gnu/packages/disk.scm,
gnu/packages/ebook.scm,
gnu/packages/education.scm,
gnu/packages/emacs.scm,
gnu/packages/emulators.scm,
gnu/packages/file-systems.scm,
gnu/packages/freedesktop.scm,
gnu/packages/ftp.scm,
gnu/packages/games.scm,
gnu/packages/geo.scm,
gnu/packages/gnome.scm,
gnu/packages/gnunet.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/gps.scm,
gnu/packages/guile.scm,
gnu/packages/ibus.scm,
gnu/packages/kerberos.scm,
gnu/packages/kodi.scm,
gnu/packages/lisp.scm,
gnu/packages/mail.scm,
gnu/packages/messaging.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/nfs.scm,
gnu/packages/ocaml.scm,
gnu/packages/package-management.scm,
gnu/packages/pdf.scm,
gnu/packages/photo.scm,
gnu/packages/php.scm,
gnu/packages/python.scm,
gnu/packages/qt.scm,
gnu/packages/ruby.scm,
gnu/packages/scheme.scm,
gnu/packages/sync.scm,
gnu/packages/syndication.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/web-browsers.scm,
gnu/packages/webkit.scm: Adjust module references.
2019-01-15 15:47:05 -05:00
|
|
|
#:use-module (gnu packages sqlite)
|
2015-10-07 15:31:45 -04:00
|
|
|
#:use-module (gnu packages tcl)
|
gnu: Separate Python core packages from the rest.
* gnu/packages/python.scm: Move hundreds of package definitions from here...
* gnu/packages/python-xyz.scm: ...to this new module.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/audio.scm,
gnu/packages/backup.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/calendar.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/cluster.scm,
gnu/packages/compression.scm,
gnu/packages/connman.scm,
gnu/packages/crypto.scm,
gnu/packages/cups.scm,
gnu/packages/databases.scm,
gnu/packages/dav.scm,
gnu/packages/direct-connect.scm,
gnu/packages/disk.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/docker.scm,
gnu/packages/ebook.scm,
gnu/packages/elf.scm,
gnu/packages/emacs.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/enlightenment.scm,
gnu/packages/finance.scm,
gnu/packages/fltk.scm,
gnu/packages/fontutils.scm,
gnu/packages/freedesktop.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/geo.scm,
gnu/packages/gl.scm,
gnu/packages/glib.scm,
gnu/packages/gnome.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/gtk.scm,
gnu/packages/ham-radio.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/kde-frameworks.scm,
gnu/packages/key-mon.scm,
gnu/packages/libffi.scm,
gnu/packages/libreoffice.scm,
gnu/packages/libusb.scm,
gnu/packages/lirc.scm,
gnu/packages/logging.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/mate.scm,
gnu/packages/maths.scm,
gnu/packages/medical.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mp3.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/nutrition.scm,
gnu/packages/openldap.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/photo.scm,
gnu/packages/polkit.scm,
gnu/packages/protobuf.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/qt.scm,
gnu/packages/rdf.scm,
gnu/packages/ruby.scm,
gnu/packages/search.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/simulation.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/sync.scm,
gnu/packages/terminals.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/virtualization.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wicd.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xorg.scm: Update module references.
2019-01-15 08:21:30 -05:00
|
|
|
#:use-module (gnu packages tls)
|
2019-03-23 10:31:09 -04:00
|
|
|
#:use-module (gnu packages xml)
|
2013-01-14 21:29:28 -05:00
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
2013-09-08 10:57:37 -04:00
|
|
|
#:use-module (guix utils)
|
2013-05-22 21:49:02 -04:00
|
|
|
#:use-module (guix build-system gnu)
|
gnu: Separate Python core packages from the rest.
* gnu/packages/python.scm: Move hundreds of package definitions from here...
* gnu/packages/python-xyz.scm: ...to this new module.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/audio.scm,
gnu/packages/backup.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/calendar.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/cluster.scm,
gnu/packages/compression.scm,
gnu/packages/connman.scm,
gnu/packages/crypto.scm,
gnu/packages/cups.scm,
gnu/packages/databases.scm,
gnu/packages/dav.scm,
gnu/packages/direct-connect.scm,
gnu/packages/disk.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/docker.scm,
gnu/packages/ebook.scm,
gnu/packages/elf.scm,
gnu/packages/emacs.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/enlightenment.scm,
gnu/packages/finance.scm,
gnu/packages/fltk.scm,
gnu/packages/fontutils.scm,
gnu/packages/freedesktop.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/geo.scm,
gnu/packages/gl.scm,
gnu/packages/glib.scm,
gnu/packages/gnome.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/gtk.scm,
gnu/packages/ham-radio.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/kde-frameworks.scm,
gnu/packages/key-mon.scm,
gnu/packages/libffi.scm,
gnu/packages/libreoffice.scm,
gnu/packages/libusb.scm,
gnu/packages/lirc.scm,
gnu/packages/logging.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/mate.scm,
gnu/packages/maths.scm,
gnu/packages/medical.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mp3.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/nutrition.scm,
gnu/packages/openldap.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/photo.scm,
gnu/packages/polkit.scm,
gnu/packages/protobuf.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/qt.scm,
gnu/packages/rdf.scm,
gnu/packages/ruby.scm,
gnu/packages/search.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/simulation.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/sync.scm,
gnu/packages/terminals.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/virtualization.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wicd.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xorg.scm: Update module references.
2019-01-15 08:21:30 -05:00
|
|
|
#:use-module (guix build-system trivial))
|
2013-01-14 21:29:28 -05:00
|
|
|
|
2016-05-15 05:51:54 -04:00
|
|
|
(define-public python-2.7
|
2013-01-14 21:29:28 -05:00
|
|
|
(package
|
2018-03-16 16:58:08 -04:00
|
|
|
(name "python2")
|
2019-03-04 07:02:05 -05:00
|
|
|
(version "2.7.16")
|
2013-01-14 21:29:28 -05:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
2014-03-17 13:24:13 -04:00
|
|
|
(uri (string-append "https://www.python.org/ftp/python/"
|
2013-01-14 21:29:28 -05:00
|
|
|
version "/Python-" version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2019-03-04 07:02:05 -05:00
|
|
|
"1mqfcqp5y8r0bfyr7ppl74n0lig45p9mc4b8adlcpvj74rhfy8pj"))
|
2016-05-02 11:53:40 -04:00
|
|
|
(patches (search-patches "python-2.7-search-paths.patch"
|
|
|
|
"python-2-deterministic-build-info.patch"
|
2016-10-17 18:11:05 -04:00
|
|
|
"python-2.7-site-prefixes.patch"
|
2017-03-13 17:11:19 -04:00
|
|
|
"python-2.7-source-date-epoch.patch"
|
2019-03-04 07:02:05 -05:00
|
|
|
"python-2.7-adjust-tests.patch"))
|
2016-02-14 15:15:57 -05:00
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
|
|
|
'(begin
|
2019-03-23 10:31:09 -04:00
|
|
|
;; Ensure the bundled copies of these libraries are not used.
|
|
|
|
(for-each delete-file-recursively
|
|
|
|
'("Modules/_ctypes/libffi" "Modules/expat" "Modules/zlib"))
|
|
|
|
|
|
|
|
(substitute* "Modules/Setup.dist"
|
|
|
|
;; Link Expat instead of embedding the bundled one.
|
|
|
|
(("^#pyexpat.*") "pyexpat pyexpat.c -lexpat\n"))
|
|
|
|
|
|
|
|
;; Suboptimal to delete failing tests here, but if we delete them in
|
|
|
|
;; the arguments then we need to make sure to strip out that phase
|
|
|
|
;; when it gets inherited by python and python-minimal.
|
2016-02-14 15:15:57 -05:00
|
|
|
(for-each delete-file
|
|
|
|
'("Lib/test/test_compileall.py"
|
2016-08-20 06:22:29 -04:00
|
|
|
"Lib/test/test_ctypes.py" ; fails on mips64el
|
2016-02-14 15:15:57 -05:00
|
|
|
"Lib/test/test_distutils.py"
|
|
|
|
"Lib/test/test_import.py"
|
|
|
|
"Lib/test/test_shutil.py"
|
|
|
|
"Lib/test/test_socket.py"
|
2016-07-27 18:58:40 -04:00
|
|
|
"Lib/test/test_subprocess.py"))
|
2016-02-14 15:15:57 -05:00
|
|
|
#t))))
|
2015-11-15 16:27:45 -05:00
|
|
|
(outputs '("out"
|
|
|
|
"tk")) ;tkinter; adds 50 MiB to the closure
|
2013-01-14 21:29:28 -05:00
|
|
|
(build-system gnu-build-system)
|
2013-04-05 18:28:39 -04:00
|
|
|
(arguments
|
2018-07-23 11:08:30 -04:00
|
|
|
`(#:test-target "test"
|
2013-04-05 18:28:39 -04:00
|
|
|
#:configure-flags
|
2015-10-07 18:05:34 -04:00
|
|
|
(list "--enable-shared" ;allow embedding
|
2019-03-23 10:31:09 -04:00
|
|
|
"--with-system-expat" ;for XML support
|
2015-10-07 18:05:34 -04:00
|
|
|
"--with-system-ffi" ;build ctypes
|
2016-09-28 04:36:45 -04:00
|
|
|
"--with-ensurepip=install" ;install pip and setuptools
|
2017-01-22 18:31:59 -05:00
|
|
|
"--enable-unicode=ucs4"
|
2019-07-07 10:51:26 -04:00
|
|
|
|
|
|
|
;; Prevent the installed _sysconfigdata.py from retaining a reference
|
|
|
|
;; to coreutils.
|
|
|
|
"INSTALL=install -c"
|
|
|
|
"MKDIR_P=mkdir -p"
|
|
|
|
|
2015-10-07 18:05:34 -04:00
|
|
|
(string-append "LDFLAGS=-Wl,-rpath="
|
|
|
|
(assoc-ref %outputs "out") "/lib"))
|
2018-11-01 22:18:41 -04:00
|
|
|
;; With no -j argument tests use all available cpus, so provide one.
|
|
|
|
#:make-flags
|
2019-04-17 23:39:39 -04:00
|
|
|
(list (string-append
|
|
|
|
(format #f "TESTOPTS=-j~d" (parallel-job-count))
|
|
|
|
;; Exclude the following tests as they fail
|
|
|
|
;; non-deterministically with "error: [Errno 104] Connection
|
|
|
|
;; reset by peer." Python 3 seems unaffected. A potential fix,
|
|
|
|
;; yet to be backported to Python 2, is available at:
|
|
|
|
;; https://github.com/python/cpython/commit/529525fb5a8fd9b96ab4021311a598c77588b918.
|
|
|
|
" --exclude test_urllib2_localnet test_httplib"))
|
2013-05-07 19:50:21 -04:00
|
|
|
|
2015-11-15 16:15:41 -05:00
|
|
|
#:modules ((ice-9 ftw) (ice-9 match)
|
|
|
|
(guix build utils) (guix build gnu-build-system))
|
2013-05-07 19:50:21 -04:00
|
|
|
#:phases
|
2015-07-15 13:31:51 -04:00
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-before
|
|
|
|
'configure 'patch-lib-shells
|
|
|
|
(lambda _
|
|
|
|
;; Filter for existing files, since some may not exist in all
|
|
|
|
;; versions of python that are built with this recipe.
|
|
|
|
(substitute* (filter file-exists?
|
|
|
|
'("Lib/subprocess.py"
|
|
|
|
"Lib/popen2.py"
|
|
|
|
"Lib/distutils/tests/test_spawn.py"
|
2017-07-30 12:13:33 -04:00
|
|
|
"Lib/test/support/__init__.py"
|
2015-07-15 13:31:51 -04:00
|
|
|
"Lib/test/test_subprocess.py"))
|
|
|
|
(("/bin/sh") (which "sh")))
|
|
|
|
#t))
|
2015-11-15 11:51:12 -05:00
|
|
|
(add-before 'configure 'do-not-record-configure-flags
|
|
|
|
(lambda* (#:key configure-flags #:allow-other-keys)
|
|
|
|
;; Remove configure flags from the installed '_sysconfigdata.py'
|
|
|
|
;; and 'Makefile' so we don't end up keeping references to the
|
|
|
|
;; build tools.
|
|
|
|
;;
|
|
|
|
;; Preserve at least '--with-system-ffi' since otherwise the
|
|
|
|
;; thing tries to build libffi, fails, and we end up with a
|
|
|
|
;; Python that lacks ctypes.
|
|
|
|
(substitute* "configure"
|
|
|
|
(("^CONFIG_ARGS=.*$")
|
|
|
|
(format #f "CONFIG_ARGS='~a'\n"
|
|
|
|
(if (member "--with-system-ffi" configure-flags)
|
|
|
|
"--with-system-ffi"
|
|
|
|
""))))
|
|
|
|
#t))
|
2015-07-15 13:31:51 -04:00
|
|
|
(add-before
|
|
|
|
'check 'pre-check
|
|
|
|
(lambda _
|
|
|
|
;; 'Lib/test/test_site.py' needs a valid $HOME
|
|
|
|
(setenv "HOME" (getcwd))
|
|
|
|
#t))
|
|
|
|
(add-after
|
|
|
|
'unpack 'set-source-file-times-to-1980
|
|
|
|
;; XXX One of the tests uses a ZIP library to pack up some of the
|
|
|
|
;; source tree, and fails with "ZIP does not support timestamps
|
|
|
|
;; before 1980". Work around this by setting the file times in the
|
|
|
|
;; source tree to sometime in early 1980.
|
|
|
|
(lambda _
|
|
|
|
(let ((circa-1980 (* 10 366 24 60 60)))
|
|
|
|
(ftw "." (lambda (file stat flag)
|
|
|
|
(utime file circa-1980 circa-1980)
|
|
|
|
#t))
|
2015-11-15 16:27:45 -05:00
|
|
|
#t)))
|
2016-05-10 03:03:55 -04:00
|
|
|
(add-after 'install 'remove-tests
|
|
|
|
;; Remove 25 MiB of unneeded unit tests. Keep test_support.*
|
|
|
|
;; because these files are used by some libraries out there.
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
(match (scandir (string-append out "/lib")
|
|
|
|
(lambda (name)
|
|
|
|
(string-prefix? "python" name)))
|
|
|
|
((pythonX.Y)
|
|
|
|
(let ((testdir (string-append out "/lib/" pythonX.Y
|
|
|
|
"/test")))
|
|
|
|
(with-directory-excursion testdir
|
|
|
|
(for-each delete-file-recursively
|
|
|
|
(scandir testdir
|
|
|
|
(match-lambda
|
|
|
|
((or "." "..") #f)
|
2019-01-03 15:47:39 -05:00
|
|
|
("support" #f)
|
2016-05-10 03:03:55 -04:00
|
|
|
(file
|
|
|
|
(not
|
|
|
|
(string-prefix? "test_support."
|
|
|
|
file))))))
|
|
|
|
(call-with-output-file "__init__.py" (const #t))
|
|
|
|
#t)))))))
|
2019-02-08 04:24:11 -05:00
|
|
|
(add-after 'remove-tests 'rebuild-bytecode
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
;; Disable hash randomization to ensure the generated .pycs
|
|
|
|
;; are reproducible.
|
|
|
|
(setenv "PYTHONHASHSEED" "0")
|
|
|
|
(for-each
|
|
|
|
(lambda (opt)
|
|
|
|
(format #t "Compiling with optimization level: ~a\n"
|
|
|
|
(if (null? opt) "none" (car opt)))
|
|
|
|
(for-each (lambda (file)
|
|
|
|
(apply invoke
|
|
|
|
`(,(string-append out "/bin/python")
|
|
|
|
,@opt
|
|
|
|
"-m" "compileall"
|
|
|
|
"-f" ; force rebuild
|
|
|
|
;; Don't build lib2to3, because it contains Python 3 code.
|
|
|
|
"-x" "lib2to3/.*"
|
|
|
|
,file)))
|
|
|
|
(find-files out "\\.py$")))
|
|
|
|
(list '() '("-O") '("-OO")))
|
|
|
|
#t)))
|
2015-11-15 16:27:45 -05:00
|
|
|
(add-after 'install 'move-tk-inter
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
;; When Tkinter support is built move it to a separate output so
|
|
|
|
;; that the main output doesn't contain a reference to Tcl/Tk.
|
|
|
|
(let ((out (assoc-ref outputs "out"))
|
|
|
|
(tk (assoc-ref outputs "tk")))
|
|
|
|
(when tk
|
|
|
|
(match (find-files out "tkinter.*\\.so")
|
|
|
|
((tkinter.so)
|
|
|
|
;; The .so is in OUT/lib/pythonX.Y/lib-dynload, but we
|
|
|
|
;; want it under TK/lib/pythonX.Y/site-packages.
|
|
|
|
(let* ((len (string-length out))
|
|
|
|
(target (string-append
|
|
|
|
tk "/"
|
|
|
|
(string-drop
|
|
|
|
(dirname (dirname tkinter.so))
|
|
|
|
len)
|
|
|
|
"/site-packages")))
|
|
|
|
(install-file tkinter.so target)
|
|
|
|
(delete-file tkinter.so)))))
|
|
|
|
#t))))))
|
2013-01-14 21:29:28 -05:00
|
|
|
(inputs
|
2013-04-05 18:28:39 -04:00
|
|
|
`(("bzip2" ,bzip2)
|
2019-03-23 10:31:09 -04:00
|
|
|
("expat" ,expat)
|
2013-04-05 18:28:39 -04:00
|
|
|
("gdbm" ,gdbm)
|
2014-01-31 19:39:04 -05:00
|
|
|
("libffi" ,libffi) ; for ctypes
|
2014-11-17 20:36:01 -05:00
|
|
|
("sqlite" ,sqlite) ; for sqlite extension
|
2013-01-14 21:29:28 -05:00
|
|
|
("openssl" ,openssl)
|
2013-04-05 18:28:39 -04:00
|
|
|
("readline" ,readline)
|
2015-10-07 15:31:45 -04:00
|
|
|
("zlib" ,zlib)
|
|
|
|
("tcl" ,tcl)
|
|
|
|
("tk" ,tk))) ; for tkinter
|
2014-01-31 19:39:04 -05:00
|
|
|
(native-inputs
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
2013-03-30 17:50:45 -04:00
|
|
|
(native-search-paths
|
|
|
|
(list (search-path-specification
|
|
|
|
(variable "PYTHONPATH")
|
packages: Add 'file-type' field to 'search-path-specification'.
Fixes <http://bugs.gnu.org/18033>.
* guix/packages.scm (<search-path-specification>): Rename 'directories'
field to 'files'. Add 'file-type'.
(search-path-specification->sexp): Honor 'file-type'.
* gnu/packages/autotools.scm, gnu/packages/bootstrap.scm,
gnu/packages/cross-base.scm, gnu/packages/games.scm,
gnu/packages/gcc.scm, gnu/packages/glib.scm,
gnu/packages/guile.scm, gnu/packages/man.scm,
gnu/packages/perl.scm, gnu/packages/pkg-config.scm,
gnu/packages/python.scm, gnu/packages/ruby.scm,
gnu/packages/xfce.scm: Change 'directories' to 'files'.
* tests/packages.scm ("search paths"): Change 'directories' field to
'files'.
* guix/scripts/environment.scm (for-each-search-path): Likewise.
2014-12-27 17:22:08 -05:00
|
|
|
(files '("lib/python2.7/site-packages")))))
|
2016-08-20 06:22:29 -04:00
|
|
|
(home-page "https://www.python.org")
|
2015-10-07 15:31:45 -04:00
|
|
|
(synopsis "High-level, dynamically-typed programming language")
|
2013-01-14 21:29:28 -05:00
|
|
|
(description
|
|
|
|
"Python is a remarkably powerful dynamic programming language that
|
|
|
|
is used in a wide variety of application domains. Some of its key
|
|
|
|
distinguishing features include: clear, readable syntax; strong
|
|
|
|
introspection capabilities; intuitive object orientation; natural
|
|
|
|
expression of procedural code; full modularity, supporting hierarchical
|
|
|
|
packages; exception-based error handling; and very high level dynamic
|
|
|
|
data types.")
|
2019-06-18 14:01:54 -04:00
|
|
|
(properties '((cpe-name . "python")))
|
2016-08-05 13:21:17 -04:00
|
|
|
(license license:psfl)))
|
2013-05-22 21:49:02 -04:00
|
|
|
|
2016-05-15 05:51:54 -04:00
|
|
|
;; Current 2.x version.
|
|
|
|
(define-public python-2 python-2.7)
|
|
|
|
|
2018-06-11 11:31:49 -04:00
|
|
|
(define-public python2-called-python
|
|
|
|
;; Both 2.x and 3.x used to be called "python". In commit
|
|
|
|
;; a7714d42de2c3082f3609d1e63c83d703fb39cf9 (March 2018), we renamed the
|
|
|
|
;; Python 2.x package to "python2".
|
|
|
|
(package
|
|
|
|
(inherit python-2)
|
|
|
|
(name "python")
|
|
|
|
(properties `((superseded . ,python-2)))))
|
|
|
|
|
2018-07-23 11:14:15 -04:00
|
|
|
(define-public python-3.7
|
2013-09-02 15:48:50 -04:00
|
|
|
(package (inherit python-2)
|
2018-03-17 05:13:47 -04:00
|
|
|
(name "python")
|
2019-07-09 14:59:58 -04:00
|
|
|
(version "3.7.4")
|
2014-04-07 16:50:48 -04:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://www.python.org/ftp/python/"
|
|
|
|
version "/Python-" version ".tar.xz"))
|
2016-04-08 08:18:13 -04:00
|
|
|
(patches (search-patches
|
2017-07-30 12:13:33 -04:00
|
|
|
"python-3-fix-tests.patch"
|
2016-04-08 08:18:13 -04:00
|
|
|
"python-3-deterministic-build-info.patch"
|
|
|
|
"python-3-search-paths.patch"))
|
2014-04-07 16:50:48 -04:00
|
|
|
(sha256
|
|
|
|
(base32
|
2019-07-09 14:59:58 -04:00
|
|
|
"0gxiv5617zd7dnqm5k9r4q2188lk327nf9jznwq9j6b8p0s92ygv"))
|
2019-03-23 10:31:09 -04:00
|
|
|
(modules '((guix build utils)))
|
2017-02-21 13:12:12 -05:00
|
|
|
(snippet
|
2017-06-13 03:24:57 -04:00
|
|
|
'(begin
|
2019-03-23 10:31:09 -04:00
|
|
|
;; Delete the bundled copy of libexpat.
|
|
|
|
(delete-file-recursively "Modules/expat")
|
|
|
|
(substitute* "Modules/Setup.dist"
|
|
|
|
;; Link Expat instead of embedding the bundled one.
|
|
|
|
(("^#pyexpat.*") "pyexpat pyexpat.c -lexpat\n"))
|
2017-06-13 03:24:57 -04:00
|
|
|
#t))))
|
2018-03-04 14:32:28 -05:00
|
|
|
(arguments
|
|
|
|
(substitute-keyword-arguments (package-arguments python-2)
|
2019-04-17 23:39:39 -04:00
|
|
|
((#:make-flags _)
|
2019-05-03 23:46:29 -04:00
|
|
|
`(list (string-append
|
|
|
|
(format #f "TESTOPTS=-j~d" (parallel-job-count))
|
2019-07-09 14:59:58 -04:00
|
|
|
;; test_mmap fails on low-memory systems.
|
|
|
|
" --exclude test_mmap"
|
|
|
|
;; test_socket may hang and eventually run out of memory
|
|
|
|
;; on some systems: <https://bugs.python.org/issue34587>.
|
|
|
|
" test_socket"
|
|
|
|
;; XXX: test_ctypes fails on some platforms due to a problem in
|
|
|
|
;; libffi 3.2.1: <https://bugs.python.org/issue23249>.
|
|
|
|
,@(if (string-prefix? "aarch64" (%current-system))
|
|
|
|
'(" test_ctypes")
|
|
|
|
'()))))
|
2018-03-04 14:32:28 -05:00
|
|
|
((#:phases phases)
|
2018-07-23 11:14:15 -04:00
|
|
|
`(modify-phases ,phases
|
2019-07-09 14:59:58 -04:00
|
|
|
(add-before 'check 'set-TZDIR
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
;; test_email requires the Olson time zone database.
|
|
|
|
(setenv "TZDIR"
|
|
|
|
(string-append (assoc-ref inputs "tzdata")
|
|
|
|
"/share/zoneinfo"))
|
|
|
|
#t))
|
2018-07-23 11:14:15 -04:00
|
|
|
;; Unset SOURCE_DATE_EPOCH while running the test-suite and set it
|
|
|
|
;; again afterwards. See <https://bugs.python.org/issue34022>.
|
|
|
|
(add-before 'check 'unset-SOURCE_DATE_EPOCH
|
|
|
|
(lambda _ (unsetenv "SOURCE_DATE_EPOCH") #t))
|
|
|
|
(add-after 'check 'reset-SOURCE_DATE_EPOCH
|
|
|
|
(lambda _ (setenv "SOURCE_DATE_EPOCH" "1") #t))
|
2019-02-08 04:24:11 -05:00
|
|
|
(replace 'rebuild-bytecode
|
2018-03-04 14:32:28 -05:00
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
2018-07-23 14:53:50 -04:00
|
|
|
;; Disable hash randomization to ensure the generated .pycs
|
|
|
|
;; are reproducible.
|
|
|
|
(setenv "PYTHONHASHSEED" "0")
|
2018-03-04 14:32:28 -05:00
|
|
|
(for-each
|
|
|
|
(lambda (opt)
|
|
|
|
(format #t "Compiling with optimization level: ~a\n"
|
|
|
|
(if (null? opt) "none" (car opt)))
|
|
|
|
(for-each (lambda (file)
|
|
|
|
(apply invoke
|
|
|
|
`(,(string-append out "/bin/python3")
|
|
|
|
,@opt
|
|
|
|
"-m" "compileall"
|
|
|
|
"-f" ; force rebuild
|
|
|
|
;; Don't build lib2to3, because it's Python 2 code.
|
2018-07-23 14:53:50 -04:00
|
|
|
"-x" "lib2to3/.*"
|
2018-03-04 14:32:28 -05:00
|
|
|
,file)))
|
|
|
|
(find-files out "\\.py$")))
|
2018-03-17 19:52:18 -04:00
|
|
|
(list '() '("-O") '("-OO")))
|
|
|
|
#t)))))))
|
2019-07-09 14:59:58 -04:00
|
|
|
(native-inputs
|
|
|
|
`(("tzdata" ,tzdata-for-tests)
|
|
|
|
,@(package-native-inputs python-2)))
|
2013-08-31 12:43:17 -04:00
|
|
|
(native-search-paths
|
|
|
|
(list (search-path-specification
|
|
|
|
(variable "PYTHONPATH")
|
2015-04-14 03:11:51 -04:00
|
|
|
(files (list (string-append "lib/python"
|
|
|
|
(version-major+minor version)
|
|
|
|
"/site-packages"))))))))
|
2013-08-31 08:52:24 -04:00
|
|
|
|
2019-11-19 03:50:51 -05:00
|
|
|
(define-public python-3.8
|
|
|
|
(package
|
|
|
|
(inherit python-3.7)
|
|
|
|
(name "python-next")
|
|
|
|
(version "3.8.0")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(inherit (package-source python-3.7))
|
|
|
|
(uri (string-append "https://www.python.org/ftp/python/"
|
|
|
|
version "/Python-" version ".tar.xz"))
|
|
|
|
(sha256 (base32 "110d0did9rxn7rg85kf2fwli5hqq44xv2d8bi7d92m7v2d728mmk"))
|
|
|
|
(patches (search-patches
|
|
|
|
"python-3.8-search-paths.patch"
|
|
|
|
"python-3-fix-tests.patch"
|
|
|
|
"python-3.8-fix-tests.patch"
|
|
|
|
"python-3-deterministic-build-info.patch"))
|
|
|
|
(snippet
|
|
|
|
'(begin
|
|
|
|
;; Delete the bundled copy of libexpat.
|
|
|
|
(delete-file-recursively "Modules/expat")
|
|
|
|
(substitute* "Modules/Setup"
|
|
|
|
;; Link Expat instead of embedding the bundled one.
|
|
|
|
(("^#pyexpat.*") "pyexpat pyexpat.c -lexpat\n"))
|
|
|
|
#t))))))
|
|
|
|
|
2016-05-15 05:51:54 -04:00
|
|
|
;; Current 3.x version.
|
2018-07-23 11:14:15 -04:00
|
|
|
(define-public python-3 python-3.7)
|
2016-05-15 05:51:54 -04:00
|
|
|
|
|
|
|
;; Current major version.
|
|
|
|
(define-public python python-3)
|
|
|
|
|
2015-10-07 15:27:36 -04:00
|
|
|
;; Minimal variants of Python, mostly used to break the cycle between Tk and
|
|
|
|
;; Python (Tk -> libxcb -> Python.)
|
|
|
|
|
|
|
|
(define-public python2-minimal
|
2018-10-06 12:50:47 -04:00
|
|
|
(package/inherit python-2
|
2018-03-16 16:58:31 -04:00
|
|
|
(name "python2-minimal")
|
2015-11-15 16:27:45 -05:00
|
|
|
(outputs '("out"))
|
2017-03-19 17:10:12 -04:00
|
|
|
|
|
|
|
;; Keep zlib, which is used by 'pip' (via the 'zipimport' module), which
|
|
|
|
;; is invoked upon 'make install'. 'pip' also expects 'ctypes' and thus
|
2019-03-23 10:31:09 -04:00
|
|
|
;; libffi. Expat is needed for XML support which is expected by a lot
|
|
|
|
;; of libraries out there.
|
|
|
|
(inputs `(("expat" ,expat)
|
|
|
|
("libffi" ,libffi)
|
2017-03-19 17:10:12 -04:00
|
|
|
("zlib" ,zlib)))))
|
2015-10-07 15:27:36 -04:00
|
|
|
|
|
|
|
(define-public python-minimal
|
2018-10-06 10:47:05 -04:00
|
|
|
(package/inherit python
|
2015-10-07 15:27:36 -04:00
|
|
|
(name "python-minimal")
|
2015-11-15 16:27:45 -05:00
|
|
|
(outputs '("out"))
|
2015-10-07 15:27:36 -04:00
|
|
|
|
2016-06-20 15:05:20 -04:00
|
|
|
;; Build fails due to missing ctypes without libffi.
|
2015-10-07 15:27:36 -04:00
|
|
|
;; OpenSSL is a mandatory dependency of Python 3.x, for urllib;
|
2019-03-23 10:31:09 -04:00
|
|
|
;; zlib is required by 'zipimport', used by pip. Expat is needed
|
|
|
|
;; for XML support, which is generally expected to be available.
|
|
|
|
(inputs `(("expat" ,expat)
|
|
|
|
("libffi" ,libffi)
|
2016-06-20 15:05:20 -04:00
|
|
|
("openssl" ,openssl)
|
2015-10-07 15:27:36 -04:00
|
|
|
("zlib" ,zlib)))))
|
|
|
|
|
2018-03-29 07:39:40 -04:00
|
|
|
(define-public python-debug
|
2018-10-06 10:47:05 -04:00
|
|
|
(package/inherit python
|
2018-03-29 07:39:40 -04:00
|
|
|
(name "python-debug")
|
|
|
|
(outputs '("out" "debug"))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
(substitute-keyword-arguments (package-arguments python)
|
|
|
|
((#:configure-flags flags '())
|
|
|
|
`(cons "--with-pydebug" ,flags))))
|
|
|
|
(synopsis
|
|
|
|
"High-level, dynamically-typed programming language (for debugging)")
|
|
|
|
(description
|
|
|
|
"This variant of Python provides an interpreter built with
|
|
|
|
@code{--with-pydebug} to help develop and debug extensions. See
|
|
|
|
@url{https://pythonextensionpatterns.readthedocs.io/en/latest/debugging/debug.html},
|
|
|
|
for more information.")))
|
|
|
|
|
2015-12-22 16:24:41 -05:00
|
|
|
(define* (wrap-python3 python
|
|
|
|
#:optional
|
|
|
|
(name (string-append (package-name python) "-wrapper")))
|
2018-10-06 10:47:05 -04:00
|
|
|
(package/inherit python
|
2015-10-07 15:27:36 -04:00
|
|
|
(name name)
|
2013-09-03 15:27:40 -04:00
|
|
|
(source #f)
|
|
|
|
(build-system trivial-build-system)
|
2015-11-15 16:27:45 -05:00
|
|
|
(outputs '("out"))
|
2016-10-15 22:44:29 -04:00
|
|
|
(inputs `(("bash" ,bash)))
|
2014-11-02 06:47:32 -05:00
|
|
|
(propagated-inputs `(("python" ,python)))
|
2013-09-03 15:27:40 -04:00
|
|
|
(arguments
|
|
|
|
`(#:modules ((guix build utils))
|
|
|
|
#:builder
|
|
|
|
(begin
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
(let ((bin (string-append (assoc-ref %outputs "out") "/bin"))
|
|
|
|
(python (string-append (assoc-ref %build-inputs "python") "/bin/")))
|
|
|
|
(mkdir-p bin)
|
|
|
|
(for-each
|
|
|
|
(lambda (old new)
|
|
|
|
(symlink (string-append python old)
|
|
|
|
(string-append bin "/" new)))
|
2016-10-15 22:44:29 -04:00
|
|
|
`("python3" ,"pydoc3" ,"idle3" ,"pip3")
|
|
|
|
`("python" ,"pydoc" ,"idle" ,"pip"))
|
|
|
|
;; python-config outputs search paths based upon its location,
|
|
|
|
;; use a bash wrapper to avoid changing its outputs.
|
|
|
|
(let ((bash (string-append (assoc-ref %build-inputs "bash")
|
|
|
|
"/bin/bash"))
|
|
|
|
(old (string-append python "python3-config"))
|
|
|
|
(new (string-append bin "/python-config")))
|
|
|
|
(with-output-to-file new
|
|
|
|
(lambda ()
|
|
|
|
(format #t "#!~a~%" bash)
|
|
|
|
(format #t "exec \"~a\" \"$@\"~%" old)
|
|
|
|
(chmod new #o755)
|
|
|
|
#t)))))))
|
2015-10-07 05:51:14 -04:00
|
|
|
(synopsis "Wrapper for the Python 3 commands")
|
|
|
|
(description
|
|
|
|
"This package provides wrappers for the commands of Python@tie{}3.x such
|
|
|
|
that they can be invoked under their usual name---e.g., @command{python}
|
|
|
|
instead of @command{python3}.")))
|
|
|
|
|
2015-10-07 15:27:36 -04:00
|
|
|
(define-public python-wrapper (wrap-python3 python))
|
|
|
|
(define-public python-minimal-wrapper (wrap-python3 python-minimal))
|
2019-02-19 04:20:02 -05:00
|
|
|
|
|
|
|
(define-public micropython
|
|
|
|
(package
|
|
|
|
(name "micropython")
|
2019-09-08 07:17:43 -04:00
|
|
|
(version "1.11")
|
2019-02-19 04:20:02 -05:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://github.com/micropython/micropython/"
|
|
|
|
"releases/download/v" version
|
|
|
|
"/micropython-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2019-09-08 07:17:43 -04:00
|
|
|
"0px3xhw16rl0l7qifq7jw1gq92wzlnhd17dmszv9m2c3wbzs9p9f"))
|
2019-02-19 04:20:02 -05:00
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
|
|
|
'(begin
|
|
|
|
(delete-file-recursively "ports/cc3200/FreeRTOS")
|
|
|
|
(with-directory-excursion "lib"
|
|
|
|
;; TODO: Unbundle axtls and berkley-db-1.xx
|
|
|
|
(for-each delete-file-recursively
|
|
|
|
'("libffi" "lwip" "stm32lib" "nrfx")))
|
|
|
|
#t))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(modify-phases %standard-phases
|
2019-09-08 07:17:43 -04:00
|
|
|
(add-before 'build 'prepare-build
|
2019-02-19 04:20:02 -05:00
|
|
|
(lambda _
|
|
|
|
(chdir "ports/unix")
|
|
|
|
;; see: https://github.com/micropython/micropython/pull/4246
|
|
|
|
(substitute* "Makefile"
|
|
|
|
(("-Os") "-Os -ffp-contract=off"))
|
|
|
|
#t))
|
|
|
|
(replace 'install-license-files
|
|
|
|
;; We don't build in the root directory so the file isn't found.
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(dest (string-append out "/share/doc/" ,name "-" ,version "/")))
|
|
|
|
(install-file "../../LICENSE" dest))
|
|
|
|
#t))
|
|
|
|
(delete 'configure)) ; no configure
|
|
|
|
#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
|
|
|
|
"V=1")
|
|
|
|
#:test-target "test"))
|
|
|
|
(native-inputs
|
|
|
|
`(("pkg-config" ,pkg-config)
|
|
|
|
("python" ,python-wrapper)))
|
|
|
|
(inputs
|
|
|
|
`(("libffi" ,libffi)))
|
|
|
|
(home-page "https://micropython.org/")
|
|
|
|
(synopsis "Python implementation for microcontrollers and constrained systems")
|
|
|
|
(description "MicroPython is a lean and efficient implementation of the
|
|
|
|
Python 3 programming language that includes a small subset of the Python
|
|
|
|
standard library and is optimised to run on microcontrollers and in constrained
|
|
|
|
environments. MicroPython is packed full of advanced features such as an
|
|
|
|
interactive prompt, arbitrary precision integers, closures, list comprehension,
|
|
|
|
generators, exception handling and more. Still it is compact enough to fit and
|
|
|
|
run within just 256k of code space and 16k of RAM. MicroPython aims to be as
|
|
|
|
compatible with normal Python as possible to allow you to transfer code with
|
|
|
|
ease from the desktop to a microcontroller or embedded system.")
|
|
|
|
(license license:expat)))
|