all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 2ced3079bc39adb1534a2222a8e22576c12d9f71 6637 bytes (raw)
name: gnu/packages/python-commencement.scm 	 # note: path name is non-authoritative(*)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
 
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2014 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
;;; Copyright © 2014, 2015, 2017 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2017, 2018, 2019, 2021 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2018, 2019, 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2019, 2020 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2020 Timothy Sample <samplet@ngyro.com>
;;; Copyright © 2020 Guy Fleury Iteriteka <gfleury@disroot.org>
;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2021 Lars-Dominik Braun <lars@6xq.net>
;;;
;;; 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/>.

(define-module (gnu packages python-commencement)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix download)
  #:use-module (guix packages)
  #:use-module (guix build-system trivial)
  #:use-module (guix build-system python)
  #:use-module (gnu packages)
  #:use-module (gnu packages python)
  #:use-module (gnu packages python-build)
  #:use-module (gnu packages python-xyz)
  #:use-module (srfi srfi-1)
  #:use-module (srfi srfi-26))

;; Python toolchain and all packages required to bootstrap it.

(define-public python-toolchain
  (package
    (name "python-toolchain")
    (version (package-version python))
    (source #f)
    (build-system trivial-build-system)
    (arguments
     '(#:modules ((guix build union))
       #:builder (begin
                   (use-modules (ice-9 match)
                                (srfi srfi-1)
                                (srfi srfi-26)
                                (guix build union))

                   (let ((out (assoc-ref %outputs "out")))
                     (union-build out (filter-map (match-lambda
                                                ((_ . directory) directory))
                                              %build-inputs))
                     #t))))
    (inputs
     `(("python" ,python-wrapper)
       ("python-setuptools" ,python-setuptools)
       ("python-pip" ,python-pip))) ; XXX Maybe virtualenv/venv too? It kind of
                                    ; defeats the purpose of guix, but is used
                                    ; alot in local development.
    (native-search-paths
     (package-native-search-paths python))
    (search-paths
     (package-search-paths python))
    (license (package-license python)) ; XXX
    (synopsis "Python toolchain")
    (description
     "Python toolchain including Python itself, setuptools and pip.  Use this
package if you need a fully-fledged Python toolchain instead of just the
interpreter.")
    (home-page (package-home-page python))))

;; Python 3 toolchain for python-build-system. We cannot use python-toolchain
;; here, since we’d need to bootstrap python-pip somehow.
(define-public python-toolchain-for-build
  (package
    (inherit python-toolchain)
    (name "python-toolchain-for-build")
    (inputs
      `(("python" ,python-wrapper)
        ("python-setuptools" ,python-setuptools)
        ("python-pypa-build" ,python-pypa-build-from-setuptools)))))

;; Python 3 toolchain to bootstrap python-pypa-build
(define-public python-toolchain-only-setuptools
  (package
    (inherit python-toolchain)
    (name "python-toolchain-only-setuptools")
    (inputs
      `(("python" ,python-wrapper)
        ("python-setuptools" ,python-setuptools)))))

(define-public python-pypa-build-from-setuptools
  (package
	(inherit python-pypa-build)
    (name "python-pypa-build-from-setuptools")
    (arguments
     `(#:tests? #f
       #:python ,python-toolchain-only-setuptools))
    (propagated-inputs
      `(("python-pep517" ,python-pep517-from-setuptools)
        ("python-packaging" ,python-packaging-from-setuptools)))))

(define-public python-pep517-from-setuptools
  (package
	(inherit python-pep517-bootstrap)
    (name "python-pep517-from-setuptools")
    (arguments
     `(#:tests? #f
       #:python ,python-toolchain-only-setuptools
       #:phases (modify-phases %standard-phases
         (add-after 'unpack 'patch
           (lambda _
             (substitute* "setup.py"
               (("distutils\\.core") "setuptools"))
             #t)))))
    (propagated-inputs
     `(("python-toml" ,python-toml-from-setuptools)
       ("python-wheel" ,python-wheel-from-setuptools)))
	;; Drop cyclic dependency.
	(native-inputs '())))

(define-public python-toml-from-setuptools
  (package
    (inherit python-toml)
    (arguments
     `(#:tests? #f
       #:python ,python-toolchain-only-setuptools
       ,@(package-arguments python-toml)))))

(define-public python-packaging-from-setuptools
  (package
    (inherit python-packaging-bootstrap)
    (name "python-packaging-from-setuptools")
    (arguments
     `(#:python ,python-toolchain-only-setuptools
       ,@(package-arguments python-packaging-bootstrap)))
    (propagated-inputs
     `(("python-pyparsing" ,python-pyparsing-from-setuptools)
       ("python-six" ,python-six-from-setuptools)))))

(define-public python-pyparsing-from-setuptools
  (package
    (inherit python-pyparsing)
    (name "python-pyparsing-from-setuptools")
    (arguments
     `(#:tests? #f
       #:python ,python-toolchain-only-setuptools
       ,@(package-arguments python-pyparsing)))))

(define-public python-six-from-setuptools
  (package
    (inherit python-six-bootstrap)
    (name "python-six-from-setuptools")
    (arguments
     `(#:python ,python-toolchain-only-setuptools
       ,@(package-arguments python-six-bootstrap)))))

(define-public python-wheel-from-setuptools
  (package
    (inherit python-wheel)
    (name "python-wheel-from-setuptools")
    (arguments
     `(#:python ,python-toolchain-only-setuptools
       ,@(package-arguments python-wheel)))))


debug log:

solving 2ced3079bc ...
found 2ced3079bc in https://yhetil.org/guix/YJ+VD+Xcb7tCU6FF@noor.fritz.box/ ||
	https://yhetil.org/guix/YDzveovrLETvBlkE@noor.fritz.box/

applying [1/1] https://yhetil.org/guix/YJ+VD+Xcb7tCU6FF@noor.fritz.box/
diff --git a/gnu/packages/python-commencement.scm b/gnu/packages/python-commencement.scm
new file mode 100644
index 0000000000..2ced3079bc

Checking patch gnu/packages/python-commencement.scm...
1:181: new blank line at EOF.
+
Applied patch gnu/packages/python-commencement.scm cleanly.
warning: 1 line adds whitespace errors.

skipping https://yhetil.org/guix/YDzveovrLETvBlkE@noor.fritz.box/ for 2ced3079bc
index at:
100644 2ced3079bc39adb1534a2222a8e22576c12d9f71	gnu/packages/python-commencement.scm

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

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.