mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-13 02:20:53 +02:00
gnu: reprotest: Improve package style
* gnu/packages/diffoscope.scm (reprotest): Improve package style, adjust fields order. [build-system]: Swap to pyproject-build-system. [inputs]: Remove python-debian, python-distro, python-libarchive-c, and python-rstr. [propagated-inputs]: Add python-debian, python-distro, python-libarchive-c, and python-rstr. [native-inputs]: Remove python-coverage and python-tox, add python-setuptools and python-wheel. Change-Id: Ia99f4a512c543bde2d9e4caba7dfecee2c05701e
This commit is contained in:
parent
ed9935ff87
commit
d3bad46f99
1 changed files with 29 additions and 20 deletions
|
@ -53,6 +53,7 @@
|
||||||
#:use-module (gnu packages patchutils)
|
#:use-module (gnu packages patchutils)
|
||||||
#:use-module (gnu packages pdf)
|
#:use-module (gnu packages pdf)
|
||||||
#:use-module (gnu packages perl)
|
#:use-module (gnu packages perl)
|
||||||
|
#:use-module (gnu packages python-build)
|
||||||
#:use-module (gnu packages python-check)
|
#:use-module (gnu packages python-check)
|
||||||
#:use-module (gnu packages python-web)
|
#:use-module (gnu packages python-web)
|
||||||
#:use-module (gnu packages python-xyz)
|
#:use-module (gnu packages python-xyz)
|
||||||
|
@ -65,6 +66,7 @@
|
||||||
#:use-module (gnu packages vim)
|
#:use-module (gnu packages vim)
|
||||||
#:use-module (gnu packages web)
|
#:use-module (gnu packages web)
|
||||||
#:use-module (guix build-system python)
|
#:use-module (guix build-system python)
|
||||||
|
#:use-module (guix build-system pyproject)
|
||||||
#:use-module (guix gexp)
|
#:use-module (guix gexp)
|
||||||
#:use-module (guix git-download)
|
#:use-module (guix git-download)
|
||||||
#:use-module ((guix licenses) #:prefix license:)
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
|
@ -263,36 +265,43 @@ install.")
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "06jm82w05qsx3wskch3fm5mpkpj5jmq7r4yram4ixprxc5j8flg8"))))
|
(base32 "06jm82w05qsx3wskch3fm5mpkpj5jmq7r4yram4ixprxc5j8flg8"))))
|
||||||
(inputs
|
(build-system pyproject-build-system)
|
||||||
(list python-debian python-distro python-libarchive-c python-rstr))
|
(arguments
|
||||||
|
(list
|
||||||
|
;; TODO: all tests failed during creation: PermissionError: [Errno 13]
|
||||||
|
;; Permission denied.
|
||||||
|
#:tests? #f
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'install 'install-doc
|
||||||
|
(lambda _
|
||||||
|
(let* ((mandir1 (string-append
|
||||||
|
#$output "/share/man/man1"))
|
||||||
|
(docdir (string-append
|
||||||
|
#$output "/share/doc/" #$name "-" #$version)))
|
||||||
|
(invoke "make" "-C" "doc")
|
||||||
|
(mkdir-p mandir1)
|
||||||
|
(install-file "doc/reprotest.1" mandir1)
|
||||||
|
(mkdir-p docdir)
|
||||||
|
(install-file "./README.rst" docdir)
|
||||||
|
(install-file "./README-dev.rst" docdir)))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list diffoscope
|
(list diffoscope
|
||||||
help2man
|
help2man
|
||||||
libfaketime
|
libfaketime
|
||||||
python-coverage
|
|
||||||
python-docutils
|
python-docutils
|
||||||
python-magic
|
python-magic
|
||||||
python-pytest
|
python-pytest
|
||||||
|
python-setuptools
|
||||||
python-tlsh
|
python-tlsh
|
||||||
python-tox
|
python-wheel
|
||||||
unzip
|
unzip
|
||||||
xxd))
|
xxd))
|
||||||
(build-system python-build-system)
|
(propagated-inputs
|
||||||
(arguments
|
(list python-debian
|
||||||
(list #:phases
|
python-distro
|
||||||
#~(modify-phases %standard-phases
|
python-libarchive-c
|
||||||
(add-after 'install 'install-doc
|
python-rstr))
|
||||||
(lambda _
|
|
||||||
(let* ((mandir1 (string-append
|
|
||||||
#$output "/share/man/man1"))
|
|
||||||
(docdir (string-append
|
|
||||||
#$output "/share/doc/" #$name "-" #$version)))
|
|
||||||
(invoke "make" "-C" "doc")
|
|
||||||
(mkdir-p mandir1)
|
|
||||||
(install-file "doc/reprotest.1" mandir1)
|
|
||||||
(mkdir-p docdir)
|
|
||||||
(install-file "./README.rst" docdir)
|
|
||||||
(install-file "./README-dev.rst" docdir)))))))
|
|
||||||
(home-page "https://salsa.debian.org/reproducible-builds/reprotest")
|
(home-page "https://salsa.debian.org/reproducible-builds/reprotest")
|
||||||
(synopsis "Build software and check it for reproducibility")
|
(synopsis "Build software and check it for reproducibility")
|
||||||
(description "Reprotest builds the same source code twice in different
|
(description "Reprotest builds the same source code twice in different
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue