projects/guix·blob python-team · refs

99 lines · 4.0 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013, 2015, 2016 Ludovic Courtès <[email protected]>
3;;; Copyright © 2015 Mark H Weaver <[email protected]>
4;;; Copyright © 2018, 2021 Marius Bakke <[email protected]>
5;;; Copyright © 2019, 2023 Efraim Flashner <[email protected]>
6;;; Copyright © 2020 Arun Isaac <[email protected]>
7;;; Copyright © 2023 Janneke Nieuwenhuizen <[email protected]>
8;;;
9;;; This file is part of GNU Guix.
10;;;
11;;; GNU Guix is free software; you can redistribute it and/or modify it
12;;; under the terms of the GNU General Public License as published by
13;;; the Free Software Foundation; either version 3 of the License, or (at
14;;; your option) any later version.
15;;;
16;;; GNU Guix is distributed in the hope that it will be useful, but
17;;; WITHOUT ANY WARRANTY; without even the implied warranty of
18;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19;;; GNU General Public License for more details.
20;;;
21;;; You should have received a copy of the GNU General Public License
22;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
23
24(define-module (gnu packages swig)
25 #:use-module (guix packages)
26 #:use-module (guix deprecation)
27 #:use-module (guix download)
28 #:use-module (guix licenses)
29 #:use-module (guix build-system gnu)
30 #:use-module (guix utils)
31 #:use-module (gnu packages)
32 #:use-module (gnu packages boost)
33 #:use-module (gnu packages guile)
34 #:use-module (gnu packages pcre)
35 #:use-module (gnu packages perl)
36 #:use-module (gnu packages python))
37
38(define-public swig-4.0
39 (package
40 (name "swig")
41 (version "4.0.2")
42 (source (origin
43 (method url-fetch)
44 (uri (string-append "mirror://sourceforge/" name "/" name "/"
45 name "-" version "/"
46 name "-" version ".tar.gz"))
47 (sha256
48 (base32
49 "1z06m5zv87mha6hvys1iay810ghc1jngilfby1ms2n4d1mryjfym"))
50 ;; Remove with next release.
51 (patches (search-patches "swig-support-gcc-12.patch"))))
52 (build-system gnu-build-system)
53 (native-inputs (list boost
54 `(,pcre "bin") ;for 'pcre-config'
55 ;; The following are for tests and examples:
56 guile-3.0
57 perl))
58 ;;("python" ,python-wrapper)
59 (inputs (list pcre))
60 (arguments (list #:tests? (not (or (target-hurd?)
61 (%current-target-system)))))
62 (home-page "https://swig.org/")
63 (synopsis
64 "Interface compiler that connects C/C++ code to higher-level languages")
65 (description
66 "SWIG is an interface compiler that connects programs written in C and
67C++ with languages such as Perl, Python, Ruby, Scheme, and Tcl. It works by
68taking the declarations found in C/C++ header files and using them to generate
69the wrapper code that scripting languages need to access the underlying C/C++
70code. In addition, SWIG provides a variety of customization features that let
71you tailor the wrapping process to suit your application.")
72
73 ;; See http://www.swig.org/Release/LICENSE for details.
74 (license gpl3+)))
75
76(define-public swig-4.4
77 (package
78 (inherit swig-4.0)
79 (name "swig")
80 (version "4.4.1")
81 (source (origin
82 (method url-fetch)
83 (uri (string-append "mirror://sourceforge/" name "/" name "/"
84 name "-" version "/"
85 name "-" version ".tar.gz"))
86 (sha256
87 (base32
88 "1kqz533599d00rrz0g2ryf8w2ynb25ayylpx10nmkxsndiq2l5j0"))
89 (patches
90 (search-patches "swig-support-r-4.6.0.patch"))))
91 (native-inputs (list boost
92 pcre2 ; for pcre2-config
93 ;; The following are for tests and examples:
94 guile-3.0
95 perl))
96 (inputs (list pcre2))))
97
98;; Remove when all packages depending on [email protected] are updated.
99-(define-public swig swig-4.4)