projects/guix·blob python-team · refs

115 lines · 4.4 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2015 Federico Beffa <[email protected]>
3;;; Copyright © 2015 Ricardo Wurmus <[email protected]>
4;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice <[email protected]>
5;;; Copyright © 2019 Gábor Boskovits <[email protected]>
6;;; Copyright © 2020 Giacomo Leidi <[email protected]>
7;;; Copyright © 2024, 2025 Janneke Nieuwenhuizen <[email protected]>
8;;; Copyright © 2026 Edouard Klein <[email protected]>
9;;;
10;;; This file is part of GNU Guix.
11;;;
12;;; GNU Guix is free software; you can redistribute it and/or modify it
13;;; under the terms of the GNU General Public License as published by
14;;; the Free Software Foundation; either version 3 of the License, or (at
15;;; your option) any later version.
16;;;
17;;; GNU Guix is distributed in the hope that it will be useful, but
18;;; WITHOUT ANY WARRANTY; without even the implied warranty of
19;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20;;; GNU General Public License for more details.
21;;;
22;;; You should have received a copy of the GNU General Public License
23;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
24
25(define-module (gnu packages libedit)
26 #:use-module (guix gexp)
27 #:use-module (guix licenses)
28 #:use-module (guix packages)
29 #:use-module (guix utils)
30 #:use-module (guix download)
31 #:use-module (guix git-download)
32 #:use-module (guix build-system cmake)
33 #:use-module (guix build-system gnu)
34 #:use-module (gnu packages ncurses))
35
36(define-public isocline
37 (package
38 (name "isocline")
39 (version "1.0.9")
40 (source
41 (origin
42 (method git-fetch)
43 (uri (git-reference
44 (url "https://github.com/daanx/isocline")
45 (commit (string-append "v" version))))
46 (file-name (git-file-name name version))
47 (sha256
48 (base32 "080ffn40ww4h68l4lwdc1k9lrivi31jdw44kv90ppvbymxfjy4zn"))))
49 (build-system cmake-build-system)
50 (arguments
51 (list
52 #:phases
53 #~(modify-phases %standard-phases
54 (replace 'check
55 (lambda* (#:key tests? #:allow-other-keys)
56 (when tests?
57 (invoke "./test_colors"))))
58 (replace 'install
59 (lambda _
60 (install-file "libisocline.a"
61 (string-append #$output "/lib"))
62 (install-file "../source/include/isocline.h"
63 (string-append #$output "/include")))))))
64 (home-page "https://github.com/daanx/isocline")
65 (synopsis "Portable alternative to GNU Readline")
66 (description
67 "Isocline is a small, portable line-editing library that provides
68multiline editing, history, completion, Unicode support, syntax highlighting,
69and other interactive input features. It has no external dependencies and
70can be used as an alternative to GNU Readline.")
71 (license expat)))
72
73(define-public libedit
74 (package
75 (name "libedit")
76 (version "20260512-3.1")
77 (source
78 (origin
79 (method url-fetch)
80 (uri (string-append "https://thrysoee.dk/editline"
81 "/libedit-" version ".tar.gz"))
82 (sha256
83 (base32 "18547v10g6g8mhkaazmplvx7gv8f3p0ppjifkz9ns4dhm1z5wba3"))))
84 (build-system gnu-build-system)
85 (inputs
86 (list ncurses))
87 (home-page "https://thrysoee.dk/editline/")
88 (synopsis "NetBSD Editline library")
89 (description
90 "This is an autotool- and libtoolized port of the NetBSD Editline
91library (libedit). This Berkeley-style licensed command line editor library
92provides generic line editing, history, and tokenization functions, similar to
93those found in GNU Readline.")
94 (license bsd-3)))
95
96(define-public editline
97 (package
98 (name "editline")
99 (version "1.17.1")
100 (source
101 (origin
102 (method url-fetch)
103 (uri (string-append
104 "https://ftp.troglobit.com/editline/editline-" version ".tar.xz"))
105 (sha256
106 (base32 "03pw3z6pz590v8xfnjx0yynnzij2sb9xwjbvqvdzsid56crkn8nz"))))
107 (build-system gnu-build-system)
108 (home-page "https://troglobit.com/projects/editline/")
109 (synopsis "Line editing library")
110 (description
111 "@code{editline} is a small line editing library. It can be linked into almost
112any program to provide command line editing and history functions. It is call
113compatible with the GNU Readline library, but at a fraction of the size,
114and as a result fewer features.")
115 (license bsd-4)))