| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 |
|
| 21 | (define-module (gnu packages spreadsheet)
|
| 22 | #:use-module (guix packages)
|
| 23 | #:use-module (guix gexp)
|
| 24 | #:use-module (guix git-download)
|
| 25 | #:use-module (guix download)
|
| 26 | #:use-module (guix utils)
|
| 27 | #:use-module (guix build-system gnu)
|
| 28 | #:use-module (guix build-system pyproject)
|
| 29 | #:use-module (guix licenses)
|
| 30 | #:use-module (gnu packages base)
|
| 31 | #:use-module (gnu packages bash)
|
| 32 | #:use-module (gnu packages bison)
|
| 33 | #:use-module (gnu packages check)
|
| 34 | #:use-module (gnu packages compression)
|
| 35 | #:use-module (gnu packages maths)
|
| 36 | #:use-module (gnu packages ncurses)
|
| 37 | #:use-module (gnu packages time)
|
| 38 | #:use-module (gnu packages pkg-config)
|
| 39 | #:use-module (gnu packages python-build)
|
| 40 | #:use-module (gnu packages python-web)
|
| 41 | #:use-module (gnu packages python-xyz)
|
| 42 | #:use-module (gnu packages statistics)
|
| 43 | #:use-module (gnu packages valgrind)
|
| 44 | #:use-module (gnu packages xml))
|
| 45 |
|
| 46 | (define-public sc-im
|
| 47 | (package
|
| 48 | (name "sc-im")
|
| 49 | (version "0.8.3")
|
| 50 | (home-page "https://github.com/andmarti1424/sc-im")
|
| 51 | (source (origin
|
| 52 | (method git-fetch)
|
| 53 | (uri
|
| 54 | (git-reference
|
| 55 | (url home-page)
|
| 56 | (commit (string-append "v" version))))
|
| 57 | (file-name (git-file-name name version))
|
| 58 | (sha256
|
| 59 | (base32
|
| 60 | "10x50smn0xl9k6m0bgfcvpwgvivmjkysawvc4zyibc8nxlqz2na2"))))
|
| 61 | (build-system gnu-build-system)
|
| 62 | (arguments
|
| 63 | (list
|
| 64 | #:make-flags
|
| 65 | #~(list "-C" "src"
|
| 66 | (string-append "CC=" #$(cc-for-target))
|
| 67 | (string-append "prefix=" #$output))
|
| 68 | #:phases
|
| 69 | #~(modify-phases %standard-phases
|
| 70 | (delete 'configure)
|
| 71 | (add-after 'unpack 'fix-bash-path-declaration-in-script
|
| 72 | (lambda _
|
| 73 | (substitute* "tests/run_all_tests.sh"
|
| 74 | (("/bin/bash") (string-append "#!" (which "bash"))))))
|
| 75 | (replace 'check
|
| 76 | (lambda* (#:key tests? #:allow-other-keys)
|
| 77 | (with-directory-excursion "tests"
|
| 78 | (when tests?
|
| 79 | (invoke "bash" "run_all_tests.sh"))))))))
|
| 80 | (inputs
|
| 81 | (list gnuplot
|
| 82 | libxls
|
| 83 | libxlsxwriter
|
| 84 | libxml2-2.11
|
| 85 | libzip
|
| 86 | ncurses))
|
| 87 | (native-inputs
|
| 88 | (list bash-minimal
|
| 89 | bison
|
| 90 | pkg-config
|
| 91 | valgrind/pinned
|
| 92 | which))
|
| 93 | (synopsis "Spreadsheet program with vim-like keybindings")
|
| 94 | (description
|
| 95 | "@code{sc-im} is a highly configurable spreadsheet program
|
| 96 | providing a vim-like experience. @code{sc-im} supports @code{gnuplot} interaction,
|
| 97 | functions for sorting and filtering, 256 color support, and much more.")
|
| 98 | (license bsd-4)))
|
| 99 |
|
| 100 | (define-public visidata
|
| 101 | (package
|
| 102 | (name "visidata")
|
| 103 | (version "3.3")
|
| 104 | (source
|
| 105 | |
| 106 | (origin
|
| 107 | (method git-fetch)
|
| 108 | (uri
|
| 109 | (git-reference
|
| 110 | (url "https://github.com/saulpw/visidata")
|
| 111 | (commit (string-append "v" version))))
|
| 112 | (file-name (git-file-name name version))
|
| 113 | (sha256
|
| 114 | (base32
|
| 115 | "1c5nd7klc3rdnjyvza7nrqwiiiadnr31yn13gac6y5iz1i3ymqfb"))))
|
| 116 | (build-system pyproject-build-system)
|
| 117 | (arguments
|
| 118 | (list #:phases
|
| 119 | #~(modify-phases %standard-phases
|
| 120 | (add-after 'unpack 'set-home-directory
|
| 121 | (lambda _ (setenv "HOME" "/tmp")))
|
| 122 | (replace 'check
|
| 123 | (lambda* (#:key tests? #:allow-other-keys)
|
| 124 | (when tests? (invoke "pytest")))))))
|
| 125 | (inputs
|
| 126 | (list python-dateutil
|
| 127 | python-requests
|
| 128 | python-lxml
|
| 129 | python-openpyxl
|
| 130 | python-xlrd))
|
| 131 | (native-inputs
|
| 132 | (list python-pytest
|
| 133 | python-setuptools
|
| 134 | python-wheel))
|
| 135 | (synopsis "Terminal spreadsheet multitool for discovering and arranging data")
|
| 136 | (description
|
| 137 | "VisiData is an interactive multitool for tabular data. It combines the
|
| 138 | clarity of a spreadsheet, the efficiency of the terminal, and the power of
|
| 139 | Python, into a lightweight utility which can handle millions of rows.")
|
| 140 | (home-page "https://www.visidata.org/")
|
| 141 | (license gpl3)))
|