Commit | Line | Data |
---|---|---|
c47f48d9 RP |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2020 Ryan Prior <rprior@protonmail.com> | |
3 | ;;; | |
4 | ;;; This file is part of GNU Guix. | |
5 | ;;; | |
6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
7 | ;;; under the terms of the GNU General Public License as published by | |
8 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
9 | ;;; your option) any later version. | |
10 | ;;; | |
11 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | ;;; GNU General Public License for more details. | |
15 | ;;; | |
16 | ;;; You should have received a copy of the GNU General Public License | |
17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
18 | ||
19 | (define-module (gnu packages visidata) | |
0e2f871c RP |
20 | #:use-module (gnu packages check) |
21 | #:use-module (gnu packages time) | |
c47f48d9 RP |
22 | #:use-module (gnu packages python-web) |
23 | #:use-module (gnu packages python-xyz) | |
c47f48d9 RP |
24 | #:use-module (gnu packages xml) |
25 | #:use-module (guix build-system python) | |
0e2f871c | 26 | #:use-module (guix build utils) |
c47f48d9 RP |
27 | #:use-module (guix download) |
28 | #:use-module ((guix licenses) #:prefix license:) | |
29 | #:use-module (guix packages)) | |
30 | ||
31 | (define-public visidata | |
32 | (package | |
33 | (name "visidata") | |
504a525d | 34 | (version "2.4") |
c47f48d9 RP |
35 | (source |
36 | (origin | |
37 | (method url-fetch) | |
38 | (uri (pypi-uri "visidata" version)) | |
39 | (sha256 | |
40 | (base32 | |
504a525d | 41 | "1g9g4gd3mqi23damxghwj76zxi2ig9vf4jv8dnvl7q7ssb7gz60d")))) |
c47f48d9 | 42 | (build-system python-build-system) |
0e2f871c RP |
43 | (arguments |
44 | '(#:phases | |
45 | (modify-phases %standard-phases | |
46 | (replace 'check | |
47 | (lambda* (#:key tests? #:allow-other-keys) | |
48 | (when tests? (invoke "pytest")) | |
49 | #t))))) | |
c47f48d9 | 50 | (inputs |
0e2f871c RP |
51 | `(("dateutil" ,python-dateutil) |
52 | ("requests" ,python-requests) | |
53 | ("lxml" ,python-lxml) | |
54 | ("openpyxl" ,python-openpyxl) | |
55 | ("xlrd" ,python-xlrd))) | |
56 | (native-inputs | |
57 | `(("pytest" ,python-pytest))) | |
c47f48d9 RP |
58 | (synopsis "Terminal spreadsheet multitool for discovering and arranging data") |
59 | (description | |
60 | "VisiData is an interactive multitool for tabular data. It combines the | |
61 | clarity of a spreadsheet, the efficiency of the terminal, and the power of | |
62 | Python, into a lightweight utility which can handle millions of rows.") | |
63 | (home-page "https://www.visidata.org/") | |
0e2f871c | 64 | (license license:gpl3))) |