2021-11-18 20:22:18 -05:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2021-12-17 18:16:26 -05:00
|
|
|
;;; Copyright © 2020, 2021 Ryan Prior <rprior@protonmail.com>
|
2021-11-18 20:22:18 -05:00
|
|
|
;;; Copyright © 2020 Ekaitz Zarraga <ekaitz@elenq.tech>
|
2024-07-10 11:29:09 -04:00
|
|
|
;;; Copyright © 2021, 2023-2024 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 02:12:33 -04: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)
|
2021-11-18 20:22:18 -05:00
|
|
|
#:use-module (guix licenses)
|
|
|
|
#:use-module (gnu packages base)
|
2023-06-13 02:12:33 -04: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)
|
|
|
|
#: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 02:12:33 -04: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 02:12:33 -04: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 02:12:33 -04:00
|
|
|
"10x50smn0xl9k6m0bgfcvpwgvivmjkysawvc4zyibc8nxlqz2na2"))))
|
2021-11-18 20:22:18 -05:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
2023-06-13 02:12:33 -04: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 02:12:33 -04: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 11:18:24 -05:00
|
|
|
(list gnuplot
|
|
|
|
libxls
|
|
|
|
libxlsxwriter
|
|
|
|
libxml2
|
|
|
|
libzip
|
|
|
|
ncurses))
|
2021-11-18 20:22:18 -05:00
|
|
|
(native-inputs
|
2023-06-13 02:12:33 -04:00
|
|
|
(list bash-minimal
|
|
|
|
bison
|
|
|
|
pkg-config
|
|
|
|
valgrind
|
|
|
|
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
|
|
|
|
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)))
|
2021-11-18 20:22:19 -05:00
|
|
|
|
|
|
|
(define-public visidata
|
|
|
|
(package
|
|
|
|
(name "visidata")
|
2024-07-10 11:29:09 -04:00
|
|
|
(version "3.0.2")
|
2021-11-18 20:22:19 -05:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "visidata" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2024-07-10 11:29:09 -04:00
|
|
|
"0nn0fwm0172gn5ffil310k7hmxqrrc1dn6xfz7jxsj0vikq8vhrq"))))
|
2021-11-18 20:22:19 -05:00
|
|
|
(build-system python-build-system)
|
|
|
|
(arguments
|
2024-07-10 11:29:09 -04:00
|
|
|
(list #:phases
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
(replace 'check
|
|
|
|
(lambda* (#:key tests? #:allow-other-keys)
|
|
|
|
(when tests? (invoke "pytest")))))))
|
2021-11-18 20:22:19 -05:00
|
|
|
(inputs
|
2021-12-17 18:16:26 -05:00
|
|
|
(list python-dateutil
|
2024-07-10 11:29:09 -04:00
|
|
|
python-importlib-metadata
|
2021-12-17 18:16:26 -05:00
|
|
|
python-requests
|
|
|
|
python-lxml
|
|
|
|
python-openpyxl
|
|
|
|
python-xlrd))
|
2021-11-18 20:22:19 -05:00
|
|
|
(native-inputs
|
2021-12-17 18:16:26 -05:00
|
|
|
(list python-pytest))
|
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)))
|