aboutsummaryrefslogtreecommitdiff
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2020, 2021 Ryan Prior <rprior@protonmail.com>
;;; Copyright © 2020 Ekaitz Zarraga <ekaitz@elenq.tech>
;;; Copyright © 2021, 2023-2024 jgart <jgart@dismail.de>
;;;
;;; 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 spreadsheet)
  #:use-module (guix packages)
  #:use-module (guix gexp)
  #:use-module (guix git-download)
  #:use-module (guix download)
  #:use-module (guix utils)
  #:use-module (guix build-system gnu)
  #:use-module (guix build-system python)
  #:use-module (guix licenses)
  #:use-module (gnu packages base)
  #:use-module (gnu packages bash)
  #:use-module (gnu packages bison)
  #:use-module (gnu packages check)
  #:use-module (gnu packages compression)
  #:use-module (gnu packages maths)
  #:use-module (gnu packages ncurses)
  #:use-module (gnu packages time)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages python-web)
  #:use-module (gnu packages python-xyz)
  #:use-module (gnu packages statistics)
  #:use-module (gnu packages valgrind)
  #:use-module (gnu packages xml))

(define-public sc-im
    (package
      (name "sc-im")
      (version "0.8.3")
      (home-page "https://github.com/andmarti1424/sc-im")
      (source (origin
                (method git-fetch)
                (uri
                  (git-reference
                    (url home-page)
                    (commit (string-append "v" version))))
                (file-name (git-file-name name version))
                (sha256
                  (base32
                    "10x50smn0xl9k6m0bgfcvpwgvivmjkysawvc4zyibc8nxlqz2na2"))))
      (build-system gnu-build-system)
      (arguments
        (list
         #:make-flags
           #~(list "-C" "src"
                   (string-append "CC=" #$(cc-for-target))
                   (string-append "prefix=" #$output))
          #:phases
            #~(modify-phases %standard-phases
                 (delete 'configure)
                 (add-after 'unpack 'fix-bash-path-declaration-in-script
                   (lambda _
                     (substitute* "tests/run_all_tests.sh"
                       (("/bin/bash") (string-append "#!" (which "bash"))))))
                 (replace 'check
                   (lambda* (#:key tests? #:allow-other-keys)
                     (with-directory-excursion "tests"
                       (when tests?
                         (invoke "bash" "run_all_tests.sh"))))))))
      (inputs
        (list gnuplot
              libxls
              libxlsxwriter
              libxml2
              libzip
              ncurses))
      (native-inputs
        (list bash-minimal
              bison
              pkg-config
              valgrind
              which))
      (synopsis "Spreadsheet program with vim-like keybindings")
      (description
 "@code{sc-im} is a highly configurable spreadsheet program
 providing a vim-like experience.  @code{sc-im} supports @{gnuplot} interaction,
 functions for sorting and filtering, 256 color support, and much more.")
      (license bsd-4)))

(define-public visidata
  (package
    (name "visidata")
    (version "3.0.2")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "visidata" version))
       (sha256
        (base32
         "0nn0fwm0172gn5ffil310k7hmxqrrc1dn6xfz7jxsj0vikq8vhrq"))))
    (build-system python-build-system)
    (arguments
     (list #:phases
           #~(modify-phases %standard-phases
               (replace 'check
                 (lambda* (#:key tests? #:allow-other-keys)
                   (when tests? (invoke "pytest")))))))
    (inputs
     (list python-dateutil
           python-importlib-metadata
           python-requests
           python-lxml
           python-openpyxl
           python-xlrd))
    (native-inputs
     (list python-pytest))
    (synopsis "Terminal spreadsheet multitool for discovering and arranging data")
    (description
     "VisiData is an interactive multitool for tabular data.  It combines the
clarity of a spreadsheet, the efficiency of the terminal, and the power of
Python, into a lightweight utility which can handle millions of rows.")
    (home-page "https://www.visidata.org/")
    (license gpl3)))
ip'>* gnu/packages/virtualization.scm (qemu) [arguments]: Add set-SOCK_DIR phase. (qemu-minimal) [arguments]: Delete the disable-extra-tests phase. Maxim Cournoyer 2023-09-08gnu: ganeti: Fix build....* gnu/packages/patches/ganeti-lens-compat.patch, gnu/packages/patches/ganeti-procps-compat.patch, gnu/packages/patches/ganeti-relax-dependencies.patch, gnu/packages/patches/ganeti-reorder-arbitrary-definitions.patch, gnu/packages/patches/ganeti-template-haskell-2.17.patch, gnu/packages/patches/ganeti-template-haskell-2.18.patch: New files. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/virtualization.scm (ganeti)[source](patches): Add them. Marius Bakke 2023-09-05gnu: qemu: Update to 8.1.0....* gnu/packages/virtualization.scm (qemu): Update to 8.1.0. [source] <patches>: Replace qemu-disable-aarch64-migration-test.patch with qemu-disable-some-qtests-tests.patch. <snippet>: Adjust for dtc relocation and meson and sgabios removal. [arguments] <configure-flags>: Remove --meson flag. Remove sgabios from the --firmwarepath value. <phases>: Adjust replace-firmwares and delete-firmwares phases for sgabios removal. [inputs]: Remove sgabios. (qemu-minimal): Use package/inherit, which is more appropriate for a package variant. [arguments]: New disable-extra-tests phase. * gnu/packages/patches/qemu-disable-aarch64-migration-test.patch: Delete file. * gnu/packages/patches/qemu-disable-some-qtests-tests.patch: New file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. Reviewed-by: Kaelyn <kaelyn.alexi@protonmail.com> Maxim Cournoyer 2023-08-29gnu: runc: Update to 1.1.9....* gnu/packages/virtualization.scm (runc): Update to 1.1.9. Hilton Chain 2023-08-29gnu: looking-glass-client: Update package style....* gnu/packages/virtualization.scm (looking-glass-client): Restyle format. [arguments]: Use G-expressions. Drop trailing #t from phases. Signed-off-by: Christopher Baines <mail@cbaines.net> Ahmad Draidi 2023-08-29gnu: looking-glass-client: Update to B6....* gnu/packages/virtualization.scm (looking-glass-client): Update to B6. [source]: Use upstream tarball and switch to url-fetch. [inputs]: Add font-dejavu, libsamplerate, pipewire, pulseaudio. Remove openssl, sdl2, sdl2-ttf. [native-inputs]: Remove libconfig. [arguments]: Add "-DOPTIMIZE_FOR_NATIVE=OFF" to #:configure-flags for reproducibility and CPU compatibility. [use-modules]: Add (gnu packages fonts). Signed-off-by: Christopher Baines <mail@cbaines.net> Ahmad Draidi 2023-07-23gnu: lxcfs: Update to 5.0.4....* gnu/packages/virtualization.scm (lxcfs): Update to 5.0.4. [build-system]: Switch to Meson. [arguments]: Remove old value. Install System V init scripts. [native-inputs]: Remove autoconf, automake, and libtool. Add help2man, python, and python-jinja2. [inputs]: Upgrade fuse-2 to fuse (3). Tobias Geerinckx-Rice 2023-07-23gnu: lxcfs: Use G-expressions....* gnu/packages/virtualization.scm (lxcfs)[arguments]: Rewrite as G-expressions. Tobias Geerinckx-Rice 2023-07-23gnu: lxcfs: Fix build....* gnu/packages/virtualization.scm (lxcfs)[arguments]: Replace the default 'bootstrap phase. Tobias Geerinckx-Rice 2023-07-23gnu: fuse@3: Bind to default FUSE variable....* gnu/packages/linux.scm (fuse): Rename this… (fuse-2): …to this, and… (fuse-3): …rename this… (fuse): …to this! (fuse-static): Rename this… (fuse-2-static): …to this. Adjust all users. Tobias Geerinckx-Rice 2023-07-26gnu: Add rvvm....* gnu/packages/virtualization.scm (rvvm): New variable. Co-authored-by: Efraim Flashner <efraim@flashner.co.il> Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Juliana Sims 2023-07-23gnu: qemu: Update to 7.2.4....* gnu/packages/virtualization.scm (qemu): Update to 7.2.4. Tobias Geerinckx-Rice 2023-07-16gnu: osinfo-db: Use G-expressions....* gnu/packages/virtualization.scm (osinfo-db)[arguments]: Rewrite as G-expressions. Tobias Geerinckx-Rice 2023-07-16gnu: osinfo-db: Update to 20230719....* gnu/packages/virtualization.scm (osinfo-db): Update to 20230719. Tobias Geerinckx-Rice 2023-07-09gnu: osinfo-db: Update to 20230518....* gnu/packages/virtualization.scm (osinfo-db): Update to 20230518. Efraim Flashner 2023-07-09gnu: osinfo-db-tools: Update to 1.10.0....* gnu/packages/virtualization.scm (osinfo-db-tools): Update to 1.10.0. Efraim Flashner 2023-07-09gnu: libx86emu: Format with 'guix style'....* gnu/packages/virtualization.scm (libx86emu): Adjust package formatting with 'guix style'. Efraim Flashner 2023-07-09gnu: libx86emu: Skip tests on non-x86 systems....* gnu/packages/virtualization.scm (libx86emu)[arguments]: Skip tests when not building on an x86 system. Efraim Flashner 2023-05-19gnu: criu: Reset timestamps in .egg file....Ensure all files being built are dated no earlier than 1980 by copying in a modified (@@ (guix build python-build-system) ensure-no-mtimes-pre-1980) which is symlink-aware. This copy should be removed when the original procedure is modified to avoid calling UTIME on symlinks. * gnu/packages/virtualization.scm (criu)[arguments]: Add 'ensure-no-mtimes-pre-1980' phase. [inputs]: Remove python. [native-inputs]: Add python-toolchain. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Brian Cully 2023-04-19gnu: qemu: Update to 7.2.1....* gnu/packages/virtualization.scm (qemu): Update to 7.2.1. Maxim Cournoyer 2023-04-11gnu: qemu: Re-add meson to native inputs....It was erroneously removed in commit 46873adc04ccf2c753362ee14c7faa81fed602c4 ("gnu: Remove extraneous #:meson build arguments."). * gnu/packages/virtualization.scm (qemu) [native-inputs]: Add meson. Maxim Cournoyer 2023-04-09gnu: Remove extraneous #:meson build arguments....* gnu/packages/build-tools.scm (meson-python) [propagated-inputs]: Replace meson-0.63 with meson. * gnu/packages/freedesktop.scm (appstream) [arguments]: Remove #:meson argument. * gnu/packages/gnome.scm (raider): Likewise. (komikku): Likewise. * gnu/packages/syndication.scm (syndication-domination): Likewise. * gnu/packages/virtualization.scm (qemu): Likewise. * gnu/packages/xdisorg.scm (tofi): Likewise. Maxim Cournoyer 2023-03-08gnu: bubblewrap: Update to 0.8.0....* gnu/packages/virtualization.scm (bubblewrap): Update to 0.8.0. Efraim Flashner