aboutsummaryrefslogtreecommitdiff
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2016, 2023 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2022 Ricardo Wurmus <rekado@elephly.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 (test-upstream)
  #:use-module (gnu packages base)
  #:use-module (guix download)
  #:use-module (guix packages)
  #:use-module (guix build-system gnu)
  #:use-module (guix import print)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix upstream)
  #:use-module (guix tests)
  #:use-module (srfi srfi-64)
  #:use-module (ice-9 match))


(test-begin "upstream")

(test-equal "coalesce-sources same version"
  '((source "foo" "1"
            ("ftp://example.org/foo-1.tar.xz"
             "ftp://example.org/foo-1.tar.gz")
            ("ftp://example.org/foo-1.tar.xz.sig"
             "ftp://example.org/foo-1.tar.gz.sig")))

  (map (lambda (source)
         `(source ,(upstream-source-package source)
                  ,(upstream-source-version source)
                  ,(upstream-source-urls source)
                  ,(upstream-source-signature-urls source)))
       (coalesce-sources (list (upstream-source
                                (package "foo") (version "1")
                                (urls '("ftp://example.org/foo-1.tar.gz"))
                                (signature-urls
                                 '("ftp://example.org/foo-1.tar.gz.sig")))
                               (upstream-source
                                (package "foo") (version "1")
                                (urls '("ftp://example.org/foo-1.tar.xz"))
                                (signature-urls
                                 '("ftp://example.org/foo-1.tar.xz.sig")))))))

(test-end)
raph.scm?id=1ba19f4bf1d0f429aaa9d6981bb960739fc4dc0a'>gnu: python-plotly: Remove obsolete phase....* gnu/packages/graph.scm (python-plotly)[arguments]<#:phases>: Remove 'make-files-writable phase. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Sarah Morgensen 2022-01-10gnu: python-igraph: Update to 0.9.8....* gnu/packages/graph.scm (python-igraph): Update to 0.9.8. [origin]: Fetch from git. [configure-flags]: Delete argument. [phases]{build}: No longer override phase. {check}: Preserve ordering and streamline. {specify-libigraph-location}: New phase. [native-inputs]: Remove pkg-config. [home-page]: Update. Maxim Cournoyer 2022-01-10gnu: igraph: Update to 0.9.5....* gnu/packages/graph.scm (igraph): Update to 0.9.5. [source]: Add snippet to fully unbundle. [build-system]: Use cmake-build-system. [configure-flags]: Replace all by just '-DBUILD_SHARED_LIBS=ON'. [native-inputs]: Add pkg-config. [inputs]{zlib}: Delete input. {arpack-ng, plfit, suitesparse}: New inputs. Maxim Cournoyer 2022-01-10gnu: Add plfit....* gnu/packages/graph.scm (plfit): New variable. Maxim Cournoyer 2021-12-29gnu: python-plotly: Fix trailing whitespace in description....* gnu/packages/graph.scm (python-plotly)[description]: Fix trailing whitespace. Vagrant Cascadian 2021-12-17gnu: python-graph-tool: Remove input labels....* gnu/packages/graph.scm (python-graph-tool)[arguments]: Import SITE-PACKAGES from (guix build python-build-system), and use instead of homegrown procedure. [native-inputs, inputs]: Remove labels. Marius Bakke 2021-12-17gnu: python-graph-tool: Build with Cairomm 1.14....* gnu/packages/graph.scm (python-graph-tool)[inputs]: Change from CAIROMM to CAIROMM-1.14. Marius Bakke 2021-12-17gnu: Remove unneeded uses of custom GCC versions....* gnu/packages/bioinformatics.scm (libmaus2, biobambam2)[native-inputs]: Remove GCC-10. * gnu/packages/game-development.scm (libresprite, python-pyxel)[native-inputs]: Likewise. * gnu/packages/lua.scm (emilua)[native-inputs]: Likewise. * gnu/packages/radio.scm (sdr++)[native-inputs]: Likewise. * gnu/packages/wm.scm (fnott)[native-inputs]: Likewise. * gnu/packages/text-editors.scm (kakoune)[native-inputs]: Likewise. (scintilla)[native-inputs]: Remove GCC-9. * gnu/packages/build-tools.scm (bear)[native-inputs]: Likewise. * gnu/packages/cpp.scm (magic-enum)[native-inputs]: Likewise. * gnu/packages/games.scm (openttd)[native-inputs]: Likewise. (schiffbruch)[native-inputs]: Remove GCC-11. * gnu/packages/music.scm (liquidsfz, geonkick)[native-inputs]: Remove GCC-9. * gnu/packages/fcitx5.scm (fcitx5, libime, fcitx5-configtool)[native-inputs]: Likewise. * gnu/packages/wine.scm (dxvk32)[native-inputs]: Likewise. * gnu/packages/ftp.scm (libfilezilla)[native-inputs]: Remove GCC-8. * gnu/packages/image.scm (blurhash)[native-inputs]: Likewise. * gnu/packages/jami.scm (libring)[native-inputs]: Likewise. * gnu/packages/pdf.scm (xournalpp)[native-inputs]: Likewise. * gnu/packages/telegram.scm (webrtc-for-telegram-desktop, telegram-desktop)[native-inputs]: Likewise. Marius Bakke 2021-12-13gnu: Simplify package inputs....This commit was obtained by running: ./pre-inst-env guix style without any additional argument. Ludovic Courtès 2021-07-20gnu: python-graph-tool: Sort inputs alphabetically....* gnu/packages/graph.scm (python-graph-tool)[native-inputs]: Sort alphabetically. [inputs]: Same. [propagated-inputs]: Same. Efraim Flashner 2021-07-20gnu: python-graph-tool: Update to 2.43....* gnu/packages/graph.scm (python-graph-tool): Update to 2.43. Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Alexandre Hannud Abdo 2021-06-29gnu: python2-plotly: Remove package....* gnu/packages/graph.scm (python2-plotly): Remove variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org> zimoun 2021-05-15gnu: Add python-graph-tool....* gnu/packages/graph.scm (python-graph-tool): New variable. Signed-off-by: Marius Bakke <marius@gnu.org> Alexandre Hannud Abdo 2021-04-25gnu: Add python-louvain 0.15....* gnu/packages/graph.scm (python-louvain): Rename variable to python-louvain-0.6. (python-louvain): New variable. * gnu/packages/bioinformatics.scm (python-scanpy)[propagated-inputs]: Use python-louvain-0.6. Co-authored-by: Leo Famulari <leo@famulari.name> Vinicius Monego 2021-03-04gnu: python-plotly: Allow test phase to be skipped....* gnu/packages/graph.scm (python-plotly)[arguments]: Wrap custom 'check phase tests with test with tests? keyword. Efraim Flashner 2021-03-04gnu: python-plotly: Update to 4.14.3....* gnu/packages/graph.scm (python-plotly): Update to 4.14.3. [propagated-inputs]: Remove python-decorator. Add python-ipython, python-pillow. Move python-ipywidgets, python-xarray ... [native-inputs]: ... to here. Efraim Flashner