| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 |
|
| 23 | (define-module (gnu packages augeas)
|
| 24 | #:use-module ((guix licenses) #:prefix license:)
|
| 25 | #:use-module (guix gexp)
|
| 26 | #:use-module (guix packages)
|
| 27 | #:use-module (guix download)
|
| 28 | #:use-module (guix git-download)
|
| 29 | #:use-module (guix utils)
|
| 30 | #:use-module (guix build-system gnu)
|
| 31 | #:use-module (guix build-system pyproject)
|
| 32 | #:use-module (gnu packages)
|
| 33 | #:use-module (gnu packages check)
|
| 34 | #:use-module (gnu packages libffi)
|
| 35 | #:use-module (gnu packages python-build)
|
| 36 | #:use-module (gnu packages readline)
|
| 37 | #:use-module (gnu packages pkg-config)
|
| 38 | #:use-module (gnu packages xml))
|
| 39 |
|
| 40 | (define-public augeas
|
| 41 | (package
|
| 42 | (name "augeas")
|
| 43 | (version "1.14.1")
|
| 44 | (source (origin
|
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | (method url-fetch)
|
| 50 | (uri
|
| 51 | (string-append
|
| 52 | "https://github.com/hercules-team/augeas/releases/download/"
|
| 53 | "release-" version
|
| 54 | "/augeas-" version ".tar.gz"))
|
| 55 | (sha256
|
| 56 | (base32
|
| 57 | "1zzdp5bwnszza5q6cjw66hkicay8b49n5pda7cbcgfg4hbbzv2rn"))))
|
| 58 | (build-system gnu-build-system)
|
| 59 | (propagated-inputs
|
| 60 | (list libxml2))
|
| 61 | (native-inputs
|
| 62 | (list readline pkg-config))
|
| 63 | (home-page "https://augeas.net")
|
| 64 | (synopsis "Edit configuration files programmatically")
|
| 65 | (description
|
| 66 | "Augeas is a library and command line tool for programmatically editing
|
| 67 | configuration files in a controlled manner. Augeas exposes a tree of all
|
| 68 | configuration settings and a simple local API for manipulating the tree.
|
| 69 | Augeas then modifies underlying configuration files according to the changes
|
| 70 | that have been made to the tree; it does as little modeling of configurations
|
| 71 | as possible, and focuses exclusivley on transforming the tree-oriented syntax
|
| 72 | of its public API to the myriad syntaxes of individual configuration files.")
|
| 73 | (license license:lgpl2.1+)))
|
| 74 |
|
| 75 | (define-public python-augeas
|
| 76 | (package
|
| 77 | (name "python-augeas")
|
| 78 | (version "1.2.0")
|
| 79 | (source
|
| 80 | (origin
|
| 81 | (method git-fetch)
|
| 82 | (uri (git-reference
|
| 83 | (url "https://github.com/hercules-team/python-augeas")
|
| 84 | (commit (string-append "v" version))))
|
| 85 | (file-name (git-file-name name version))
|
| 86 | (sha256
|
| 87 | (base32 "1l17gl23f5naram1jaab7gjr9bhjdj97fd9sydvs7cmpns91rbrf"))))
|
| 88 | (build-system pyproject-build-system)
|
| 89 | (native-inputs
|
| 90 | (list pkg-config
|
| 91 | python-pytest
|
| 92 | python-setuptools
|
| 93 | python-wheel))
|
| 94 | (propagated-inputs
|
| 95 | (list python-cffi))
|
| 96 | (inputs
|
| 97 | (list augeas libxml2))
|
| 98 | (home-page "https://github.com/hercules-team/python-augeas")
|
| 99 | (synopsis "Python bindings for Augeas")
|
| 100 | (description "Pure Python bindings for @url{https://augeas.net, Augeas}.")
|
| 101 | (license license:lgpl2.1+)))
|