aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/swig.scm
blob: 3f38cd9f9f5c4952f406c271fcec8aa9c2184c59 (about) (plain)
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
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2018, 2021 Marius Bakke <marius@gnu.org>
;;; Copyright © 2019, 2023 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2020 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2023 Janneke Nieuwenhuizen <janneke@gnu.org>
;;;
;;; 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 swig)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix licenses)
  #:use-module (guix build-system gnu)
  #:use-module (guix utils)
  #:use-module (gnu packages)
  #:use-module (gnu packages boost)
  #:use-module (gnu packages guile)
  #:use-module (gnu packages pcre)
  #:use-module (gnu packages perl)
  #:use-module (gnu packages python))

(define-public swig
  (package
    (name "swig")
    (version "4.0.2")
    (source (origin
             (method url-fetch)
             (uri (string-append "mirror://sourceforge/" name "/" name "/"
                                 name "-" version "/"
                                 name "-" version ".tar.gz"))
             (sha256
              (base32
               "1z06m5zv87mha6hvys1iay810ghc1jngilfby1ms2n4d1mryjfym"))
             ;; Remove with next release.
             (patches (search-patches "swig-support-gcc-12.patch"))))
    (build-system gnu-build-system)
    (native-inputs (list boost
                         `(,pcre "bin") ;for 'pcre-config'
                         ;; The following are for tests and examples:
                         guile-3.0
                         perl))
                     ;;("python" ,python-wrapper)
    (inputs (list pcre))
    (arguments (list #:tests? (not (or (target-hurd?)
                                       (%current-target-system)))))
    (home-page "https://swig.org/")
    (synopsis
     "Interface compiler that connects C/C++ code to higher-level languages")
    (description
     "SWIG is an interface compiler that connects programs written in C and
C++ with languages such as Perl, Python, Ruby, Scheme, and Tcl.  It works by
taking the declarations found in C/C++ header files and using them to generate
the wrapper code that scripting languages need to access the underlying C/C++
code.  In addition, SWIG provides a variety of customization features that let
you tailor the wrapping process to suit your application.")

    ;; See http://www.swig.org/Release/LICENSE for details.
    (license gpl3+)))

(define-public swig-next
  ;; a number of packages using swig do not build with this version
  ;; so we need to keep swig 4.0.2 above and place the current release
  ;; as swig-next
  (package
    (inherit swig)
    (name "swig")
    (version "4.1.1")
    (source (origin
              (method url-fetch)
              (uri (string-append "mirror://sourceforge/" name "/" name "/"
                                 name "-" version "/"
                                 name "-" version ".tar.gz"))
              (sha256
               (base32
                "16xc767gf5ip40jh698wbdrxrghli5v2c966bkdmrmpwv378mw1a"))))
    (inputs (list pcre2))))
:22 +0200'>2023-05-22gnu: python-txtorcon: Run guix style....* gnu/packages/python-crypto.scm (python-txtorcon): Run guix style. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Juliana Sims 2023-05-22gnu: python-txtorcon: Fix failing build....Oops, I forgot to add a copyright line - this version fixes that. * gnu/packages/python-crypto.scm (python-txtorcon): Fix failing build. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Juliana Sims 2023-04-23gnu: python-ecdsa: Fix faulty commit....Fix previous commit, which did not properly add the test to be skipped and repeated the existing skipped test. There is only one new test to be skipped. * gnu/packages/python-crypto.scm (python-ecdsa)[arguments]: In the 'check' phase, properly format the string for skipped tests. John Kehayias 2023-04-23gnu: python-ecdsa: Skip two failing tests....* gnu/packages/python-crypto.scm (python-ecdsa)[arguments]: In 'check' phase, skip a couple more tests. John Kehayias 2023-04-22Merge remote-tracking branch 'origin/master' into core-updatesAndreas Enge 2023-04-21gnu: python-txtorcon: Fix build....gnu/packages/python-crypto.scm (python-txtorcon): Fix build failure. [propagated-inputs]: Add PYTHON-PYOPENSSL. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr> Brendan Tildesley 2023-04-17Merge remote-tracking branch 'origin/master' into core-updatesAndreas Enge 2023-04-17gnu: python-jeepney: Update to 0.8.0....* gnu/packages/python-crypto.scm (python-jeepney): Update to 0.8.0. [build-system]: Switch to pyproject-build-system. [native-inputs]: Add python-async-timeout, python-pytest-asyncio, python-flit-core. Remove python-tornado. Efraim Flashner 2023-04-17gnu: python-secretstorage: Update to 3.3.3....* gnu/packages/python-crypto.scm (python-secretstorage): Update to 3.3.3. Efraim Flashner 2023-04-14gnu: python-pytest-7.1: Deprecate package....The source was adjusted using the following command: $ git grep -rl python-pytest-7.1 | xargs sed -i 's/python-pytest-7.1/python-pytest/g' * gnu/packages/check.scm (python-pytest-7.1): Delete variable. Maxim Cournoyer 2023-04-14Merge branch 'master' into core-updates....Conflicts: gnu/local.mk gnu/packages/build-tools.scm gnu/packages/certs.scm gnu/packages/check.scm gnu/packages/compression.scm gnu/packages/cups.scm gnu/packages/fontutils.scm gnu/packages/gnuzilla.scm gnu/packages/guile.scm gnu/packages/ibus.scm gnu/packages/image-processing.scm gnu/packages/linux.scm gnu/packages/music.scm gnu/packages/nss.scm gnu/packages/pdf.scm gnu/packages/python-xyz.scm gnu/packages/qt.scm gnu/packages/ruby.scm gnu/packages/shells.scm gnu/packages/tex.scm gnu/packages/video.scm gnu/packages/vulkan.scm gnu/packages/web.scm gnu/packages/webkit.scm gnu/packages/wm.scm Maxim Cournoyer 2023-04-14gnu: python-service-identity: Update to 21.1.0....* gnu/packages/python-crypto.scm (python-service-identity): Update to 21.1.0. [build-system]: Use pyproject-build-system. [native-inputs]: New field. [propagated-inputs]: Remove python-pyopenssl. Add python-cryptography and python-six. Maxim Cournoyer 2023-04-14gnu: python-pyopenssl: Update to 23.1.1....* gnu/packages/python-crypto.scm (python-pyopenssl): Update to 23.1.1. [source]: Remove patches. [arguments]: Update faketime date in check phase. Normalize pytest invocation in check phase override. [propagated-inputs]: Remove python-six. Maxim Cournoyer 2023-04-14gnu: python-cryptography: Update to 40.0.1 [fixes CVE-2023-23931]....* gnu/packages/python-crypto.scm (python-cryptography-vectors): Delete variable. (python-cryptography-vectors-next): Rename to... (python-cryptography-vectors): ... this. Update to 40.0.1. (python-cryptography): Delete variable. (python-cryptography-next): Rename to... (python-cryptography): ... this. Update to 40.0.1. [build-system]: Use pyproject-build-system. [arguments]: Remove #:imported-modules and #:modules arguments. Remove check phase override. Remove adjust-pyo3-requirement and configure-cargo phases. Add disable-rust-extension-build and symlink-rust-library phases. [native-inputs]: Replace python-cryptography-vectors-next with python-cryptography-vectors. Add python-iso8601. Remove python-pytz. Replace python-pytest with python-pytest-7.1. Remove rust, rust:cargo and python-setuptools-rust. [inputs]: Remove all inputs. Add python-cryptography-rust. [propagated-inputs]: Remove python-asn1crypto, python-six, python-idna and python-iso8601. [description]: Start description with @code to avoid a lint warning. Maxim Cournoyer 2023-04-14gnu: Add python-cryptography-rust....* gnu/packages/python-crypto.scm (python-cryptography-rust): New variable. Maxim Cournoyer 2023-04-11gnu: python-service-identity: Update to 21.1.0....* gnu/packages/python-crypto.scm (python-service-identity): Update to 21.1.0. [build-system]: Use pyproject-build-system. [native-inputs]: New field. [propagated-inputs]: Remove python-pyopenssl. Add python-cryptography and python-six. Maxim Cournoyer 2023-04-11gnu: python-pyopenssl: Update to 23.1.1....* gnu/packages/python-crypto.scm (python-pyopenssl): Update to 23.1.1. [source]: Remove patches. [arguments]: Update faketime date in check phase. Normalize pytest invocation in check phase override. [propagated-inputs]: Remove python-six. Maxim Cournoyer 2023-04-11gnu: python-cryptography: Update to 40.0.1 [fixes CVE-2023-23931]....* gnu/packages/python-crypto.scm (python-cryptography-vectors): Delete variable. (python-cryptography-vectors-next): Rename to... (python-cryptography-vectors): ... this. Update to 40.0.1. (python-cryptography): Delete variable. (python-cryptography-next): Rename to... (python-cryptography): ... this. Update to 40.0.1. [build-system]: Use pyproject-build-system. [arguments]: Remove #:imported-modules and #:modules arguments. Remove check phase override. Remove adjust-pyo3-requirement and configure-cargo phases. Add disable-rust-extension-build and symlink-rust-library phases. [native-inputs]: Replace python-cryptography-vectors-next with python-cryptography-vectors. Add python-iso8601. Remove python-pytz. Replace python-pytest with python-pytest-7.1. Remove rust, rust:cargo and python-setuptools-rust. [inputs]: Remove all inputs. Add python-cryptography-rust. [propagated-inputs]: Remove python-asn1crypto, python-six, python-idna and python-iso8601. [description]: Start description with @code to avoid a lint warning. Maxim Cournoyer 2023-04-11gnu: Add python-cryptography-rust....* gnu/packages/python-crypto.scm (python-cryptography-rust): New variable. Maxim Cournoyer 2023-03-29gnu: python-trustme: Update to 0.9.0....* gnu/packages/python-crypto.scm (python-trustme): Update to 0.9.0. [build-system]: Use pyproject-build-system. [arguments]: Delete field. [propagated-inputs]: Add python-idna and python-ipaddress. Maxim Cournoyer 2023-02-25gnu: Remove python-pycrypto....The package has seen its last release in 2013 and "is unmaintained, obsolete, and contains security vulnerabilities" according to its homepage. * gnu/packages/python-crypto.scm (python-pycrypto): Delete variable. Andreas Enge 2023-02-25gnu: Remove python-potr....The last release of the package dates from 2018. According to its self-description: "This software is experimental and potentially insecure. Do not rely on it" It depends on the cryptography library python-pycrypto, which has had its last release in 2013 and "is unmaintained, obsolete, and contains security vulnerabilities" according to its homepage. * gnu/packages/python-crypto.scm (python-potr): Delete variable. Andreas Enge 2022-11-20gnu: python-pycryptodome: Update to 3.15.0....* gnu/packages/python-crypto.scm (python-pycryptodome): Update to 3.15.0. (python-pycryptodomex): Update hash. Marius Bakke