;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2021 Lars-Dominik Braun ;;; Copyright © 2022 Marius Bakke ;;; ;;; 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 . (define-module (gnu packages python-commencement) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix gexp) #:use-module (guix build-system trivial) #:use-module (gnu packages) #:use-module (gnu packages python) #:use-module (gnu packages python-build) #:use-module (srfi srfi-1) #:use-module (srfi srfi-26)) (define-public python-toolchain (package (name "python-toolchain") (version (package-version python)) (source #f) (build-system trivial-build-system) (arguments (list #:modules '((guix build union)) #:builder #~(begin (use-modules (ice-9 match) (srfi srfi-1) (guix build union)) (union-build #$output (filter-map (match-lambda ((_ . directory) directory)) %build-inputs))))) (inputs (list python-sans-pip-wrapper python-pypa-build python-pip python-setuptools python-wheel)) (native-search-paths (package-native-search-paths python)) (search-paths (package-search-paths python)) (license (package-license python)) (synopsis "Python toolchain") (description "Python toolchain including Python itself, setuptools and pip. Use this package if you need a minimal Python toolchain instead of just the interpreter.") (home-page (package-home-page python))))