2021-11-18 20:22:18 -05:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2021-12-17 23:16:26 +00:00
|
|
|
;;; Copyright © 2020, 2021 Ryan Prior <rprior@protonmail.com>
|
2021-11-18 20:22:18 -05:00
|
|
|
;;; Copyright © 2020 Ekaitz Zarraga <ekaitz@elenq.tech>
|
2025-08-07 16:16:37 -05:00
|
|
|
;;; Copyright © 2021, 2023-2025 jgart <jgart@dismail.de>
|
2021-11-18 20:22:18 -05:00
|
|
|
;;;
|
|
|
|
|
;;; 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)
|
2023-06-13 01:12:33 -05:00
|
|
|
#:use-module (guix gexp)
|
2021-11-18 20:22:18 -05:00
|
|
|
#:use-module (guix git-download)
|
|
|
|
|
#:use-module (guix download)
|
|
|
|
|
#:use-module (guix utils)
|
|
|
|
|
#:use-module (guix build-system gnu)
|
2021-11-18 20:22:19 -05:00
|
|
|
#:use-module (guix build-system python)
|
2025-08-07 16:16:37 -05:00
|
|
|
#:use-module (guix build-system pyproject)
|
2021-11-18 20:22:18 -05:00
|
|
|
#:use-module (guix licenses)
|
|
|
|
|
#:use-module (gnu packages base)
|
2023-06-13 01:12:33 -05:00
|
|
|
#:use-module (gnu packages bash)
|
2021-11-18 20:22:19 -05:00
|
|
|
#:use-module (gnu packages bison)
|
|
|
|
|
#:use-module (gnu packages check)
|
|
|
|
|
#:use-module (gnu packages compression)
|
2021-11-18 20:22:18 -05:00
|
|
|
#:use-module (gnu packages maths)
|
2021-11-18 20:22:19 -05:00
|
|
|
#:use-module (gnu packages ncurses)
|
|
|
|
|
#:use-module (gnu packages time)
|
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2025-08-07 16:16:37 -05:00
|
|
|
#:use-module (gnu packages python-build)
|
2021-11-18 20:22:19 -05:00
|
|
|
#:use-module (gnu packages python-web)
|
|
|
|
|
#:use-module (gnu packages python-xyz)
|
2021-11-18 20:22:18 -05:00
|
|
|
#:use-module (gnu packages statistics)
|
2023-06-13 01:12:33 -05:00
|
|
|
#:use-module (gnu packages valgrind)
|
2021-11-18 20:22:19 -05:00
|
|
|
#:use-module (gnu packages xml))
|
2021-11-18 20:22:18 -05:00
|
|
|
|
|
|
|
|
(define-public sc-im
|
|
|
|
|
(package
|
|
|
|
|
(name "sc-im")
|
2023-06-13 01:12:33 -05:00
|
|
|
(version "0.8.3")
|
2021-11-18 20:22:18 -05:00
|
|
|
(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
|
2023-06-13 01:12:33 -05:00
|
|
|
"10x50smn0xl9k6m0bgfcvpwgvivmjkysawvc4zyibc8nxlqz2na2"))))
|
2021-11-18 20:22:18 -05:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2023-06-13 01:12:33 -05:00
|
|
|
(list
|
|
|
|
|
#:make-flags
|
|
|
|
|
#~(list "-C" "src"
|
|
|
|
|
(string-append "CC=" #$(cc-for-target))
|
|
|
|
|
(string-append "prefix=" #$output))
|
2021-11-18 20:22:18 -05:00
|
|
|
#:phases
|
2023-06-13 01:12:33 -05:00
|
|
|
#~(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"))))))))
|
2021-11-18 20:22:18 -05:00
|
|
|
(inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
(list gnuplot
|
|
|
|
|
libxls
|
|
|
|
|
libxlsxwriter
|
2025-10-12 00:10:09 +02:00
|
|
|
libxml2-2.11
|
2021-12-13 17:18:24 +01:00
|
|
|
libzip
|
|
|
|
|
ncurses))
|
2021-11-18 20:22:18 -05:00
|
|
|
(native-inputs
|
2023-06-13 01:12:33 -05:00
|
|
|
(list bash-minimal
|
|
|
|
|
bison
|
|
|
|
|
pkg-config
|
gnu: Rename valgrind-next to valgrind.
* gnu/packages/valgrind.scm (valgrind/pinned): Make public.
(valgrind): Delete.
(valgrind-next): Rename to valgrind.
(valgrind/interactive): Inherit from valgrind.
* gnu/packages/audio.scm (codec2),
* gnu/packages/bootloaders.scm (dtc),
* gnu/packages/chromium.scm (ungoogled-chromium),
* gnu/packages/crates-io.scm (rust-crabgrind-0.1),
* gnu/packages/crates-tls.scm (rust-rustls-pki-types-1),
* gnu/packages/file-systems.scm (bindfs),
* gnu/packages/gnome.scm (libratbag, gnome-software),
* gnu/packages/high-availability.scm (pacemaker),
* gnu/packages/linux.scm (multipath-tools),
* gnu/packages/machine-learning.scm (python-pytorch),
* gnu/packages/mpi.scm (openmpi-4),
* gnu/packages/music.scm (stargate),
* gnu/packages/perl-check.scm (perl-test-runvalgrind),
* gnu/packages/prolog.scm (trealla),
* gnu/packages/qt.scm (qtwebengine-5, qt-creator),
* gnu/packages/robotics.scm (aseba),
* gnu/packages/ruby.scm (ruby-ruby-memcheck),
* gnu/packages/spreadsheet.scm (sc-im),
* gnu/packages/web.scm (jq): Rename valgrind to valgrind/pinned.
Change-Id: I9dec25abce643ef6d815a2cc50414c4f65f1e8d3
2025-05-05 17:15:14 +00:00
|
|
|
valgrind/pinned
|
2023-06-13 01:12:33 -05:00
|
|
|
which))
|
2021-11-18 20:22:18 -05:00
|
|
|
(synopsis "Spreadsheet program with vim-like keybindings")
|
|
|
|
|
(description
|
|
|
|
|
"@code{sc-im} is a highly configurable spreadsheet program
|
gnu: packages: Fix broken descriptions.
A few description mistakenly use @{foo} instead of @code{foo} which
results in broken formatting in guix search.
* gnu/packages/bioinformatics.scm (umi-tools),
* gnu/packages/cran.scm (r-ggside),
* gnu/packages/crates-apple.scm: (rust-commoncrypto-0.2),
* gnu/packages/crates-io.scm: (rust-ndarray-rand-0.15),
* gnu/packages/emacs-xyz.scm (emacs-load-relative, emacs-el-x)
(emacs-helm-org-ql, emacs-consult-lsp),
* gnu/packages/golang-xyz.scm (go-github-com-songmu-gitconfig),
* gnu/packages/haskell-xyz.scm (ghc-text-short, ghc-validation),
* gnu/packages/image.scm (imgp),
* gnu/packages/perl-check.scm (perl-test-file-contents),
* gnu/packages/perl-web.scm (perl-uri-db),
* gnu/packages/perl.scm (perl-clipboard, perl-module-refresh),
* gnu/packages/python-xyz.scm (python-ddlparse, python-black-macchiato)
(python-pysendfile),
* gnu/packages/qt.scm (qt5compat),
* gnu/packages/ruby.scm (ruby-ruby-engine, ruby-httpclient),
* gnu/packages/sagemath.scm (python-memory-allocator),
* gnu/packages/spreadsheet.scm (sc-im),
* gnu/packages/time.scm (python-pendulum):
[description]: Fix malformed macros.
Change-Id: I3ed755a54aecf40bf0c5c982f9e70b7cd3689de7
Signed-off-by: Greg Hogan <code@greghogan.com>
2025-05-13 16:29:27 +02:00
|
|
|
providing a vim-like experience. @code{sc-im} supports @code{gnuplot} interaction,
|
2021-11-18 20:22:18 -05:00
|
|
|
functions for sorting and filtering, 256 color support, and much more.")
|
|
|
|
|
(license bsd-4)))
|
2021-11-18 20:22:19 -05:00
|
|
|
|
|
|
|
|
(define-public visidata
|
|
|
|
|
(package
|
|
|
|
|
(name "visidata")
|
2025-11-28 15:58:56 -06:00
|
|
|
(version "3.3")
|
2021-11-18 20:22:19 -05:00
|
|
|
(source
|
2025-08-07 16:16:37 -05:00
|
|
|
;; PyPI tarball is missing the requirements.txt file.
|
2021-11-18 20:22:19 -05:00
|
|
|
(origin
|
2025-08-07 16:16:37 -05:00
|
|
|
(method git-fetch)
|
|
|
|
|
(uri
|
|
|
|
|
(git-reference
|
|
|
|
|
(url "https://github.com/saulpw/visidata")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
2021-11-18 20:22:19 -05:00
|
|
|
(sha256
|
|
|
|
|
(base32
|
2025-11-28 15:58:56 -06:00
|
|
|
"1c5nd7klc3rdnjyvza7nrqwiiiadnr31yn13gac6y5iz1i3ymqfb"))))
|
2025-08-07 16:16:37 -05:00
|
|
|
(build-system pyproject-build-system)
|
2021-11-18 20:22:19 -05:00
|
|
|
(arguments
|
2024-07-10 10:29:09 -05:00
|
|
|
(list #:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
2025-02-19 13:52:33 -06:00
|
|
|
(add-after 'unpack 'set-home-directory
|
|
|
|
|
(lambda _ (setenv "HOME" "/tmp")))
|
2024-07-10 10:29:09 -05:00
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key tests? #:allow-other-keys)
|
|
|
|
|
(when tests? (invoke "pytest")))))))
|
2021-11-18 20:22:19 -05:00
|
|
|
(inputs
|
2021-12-17 23:16:26 +00:00
|
|
|
(list python-dateutil
|
2024-07-10 10:29:09 -05:00
|
|
|
python-importlib-metadata
|
2021-12-17 23:16:26 +00:00
|
|
|
python-requests
|
|
|
|
|
python-lxml
|
|
|
|
|
python-openpyxl
|
|
|
|
|
python-xlrd))
|
2021-11-18 20:22:19 -05:00
|
|
|
(native-inputs
|
2025-08-07 16:16:37 -05:00
|
|
|
(list python-pytest
|
|
|
|
|
python-setuptools
|
|
|
|
|
python-wheel))
|
2021-11-18 20:22:19 -05:00
|
|
|
(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)))
|