2016-01-21 15:03:26 +00:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2018-02-10 22:58:10 +00:00
|
|
|
;;; Copyright © 2016, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
|
2018-10-09 08:01:39 +00:00
|
|
|
;;; Copyright © 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
|
2017-10-30 16:23:46 +00:00
|
|
|
;;; Copyright © 2017 Eric Bavier <bavier@member.fsf.org>
|
2020-04-16 17:33:57 +00:00
|
|
|
;;; Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr>
|
2024-05-17 12:24:04 +00:00
|
|
|
;;; Copyright © 2024 Artyom V. Poptsov <poptsov.artyom@gmail.com>
|
2016-01-21 15:03:26 +00: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 augeas)
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2024-05-17 12:24:04 +00:00
|
|
|
#:use-module (guix gexp)
|
2016-01-21 15:03:26 +00:00
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
2024-05-17 12:24:05 +00:00
|
|
|
#:use-module (guix git-download)
|
2016-01-21 15:03:26 +00:00
|
|
|
#:use-module (guix utils)
|
|
|
|
#:use-module (guix build-system gnu)
|
2024-05-17 12:24:05 +00:00
|
|
|
#:use-module (guix build-system pyproject)
|
2016-01-21 15:03:26 +00:00
|
|
|
#:use-module (gnu packages)
|
2024-05-17 12:24:05 +00:00
|
|
|
#:use-module (gnu packages check)
|
|
|
|
#:use-module (gnu packages libffi)
|
2016-01-21 15:03:26 +00:00
|
|
|
#:use-module (gnu packages readline)
|
|
|
|
#:use-module (gnu packages pkg-config)
|
|
|
|
#:use-module (gnu packages xml))
|
|
|
|
|
|
|
|
(define-public augeas
|
|
|
|
(package
|
|
|
|
(name "augeas")
|
2024-05-17 12:24:04 +00:00
|
|
|
(version "1.14.1")
|
2016-01-21 15:03:26 +00:00
|
|
|
(source (origin
|
2024-05-17 12:24:04 +00:00
|
|
|
;; XXX: Project release has moved to GitHub which has
|
|
|
|
;; pre-generated "configure" script that allows to simplify
|
|
|
|
;; the package definition. Try to completely build from
|
|
|
|
;; source, glibc comes as git submodule.
|
2016-01-21 15:03:26 +00:00
|
|
|
(method url-fetch)
|
2024-05-17 12:24:04 +00:00
|
|
|
(uri
|
|
|
|
(string-append
|
|
|
|
"https://github.com/hercules-team/augeas/releases/download/"
|
|
|
|
"release-" version
|
|
|
|
"/augeas-" version ".tar.gz"))
|
2016-01-21 15:03:26 +00:00
|
|
|
(sha256
|
|
|
|
(base32
|
2024-05-17 12:24:04 +00:00
|
|
|
"1zzdp5bwnszza5q6cjw66hkicay8b49n5pda7cbcgfg4hbbzv2rn"))))
|
2016-01-21 15:03:26 +00:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list libxml2))
|
2016-01-21 15:03:26 +00:00
|
|
|
(native-inputs
|
2024-05-17 12:24:04 +00:00
|
|
|
(list readline pkg-config))
|
2020-04-16 17:34:08 +00:00
|
|
|
(home-page "https://augeas.net")
|
2016-01-21 15:03:26 +00:00
|
|
|
(synopsis "Edit configuration files programmatically")
|
|
|
|
(description
|
|
|
|
"Augeas is a library and command line tool for programmatically editing
|
|
|
|
configuration files in a controlled manner. Augeas exposes a tree of all
|
|
|
|
configuration settings and a simple local API for manipulating the tree.
|
|
|
|
Augeas then modifies underlying configuration files according to the changes
|
|
|
|
that have been made to the tree; it does as little modeling of configurations
|
|
|
|
as possible, and focuses exclusivley on transforming the tree-oriented syntax
|
|
|
|
of its public API to the myriad syntaxes of individual configuration files.")
|
|
|
|
(license license:lgpl2.1+)))
|
2024-05-17 12:24:05 +00:00
|
|
|
|
|
|
|
(define-public python-augeas
|
|
|
|
(package
|
|
|
|
(name "python-augeas")
|
|
|
|
(version "1.2.0")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/hercules-team/python-augeas")
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32 "1l17gl23f5naram1jaab7gjr9bhjdj97fd9sydvs7cmpns91rbrf"))))
|
|
|
|
(build-system pyproject-build-system)
|
|
|
|
(native-inputs
|
|
|
|
(list python-pytest pkg-config))
|
|
|
|
(propagated-inputs
|
|
|
|
(list python-cffi))
|
|
|
|
(inputs
|
|
|
|
(list augeas libxml2))
|
|
|
|
(home-page "https://github.com/hercules-team/python-augeas")
|
|
|
|
(synopsis "Python bindings for Augeas")
|
|
|
|
(description "Pure Python bindings for @url{https://augeas.net, Augeas}.")
|
|
|
|
(license license:lgpl2.1+)))
|