diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-11-27 20:42:09 +0000 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-12-13 20:28:39 +0000 |
| commit | d3bad46f990fbd884ca114dddd5af0eae434aecc (patch) | |
| tree | 789d2bacb2a62dbcea8a7420cec987a9a60f49e6 | |
| parent | ed9935ff8723186a906629b576b70dd54e62f7d4 (diff) | |
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
| -rw-r--r-- | gnu/packages/diffoscope.scm | 49 |
1 files changed, 29 insertions, 20 deletions
diff --git a/gnu/packages/diffoscope.scm b/gnu/packages/diffoscope.scm index 5aaa64fbb86..c08c5351ceb 100644 --- a/gnu/packages/diffoscope.scm +++ b/gnu/packages/diffoscope.scm | |||
| @@ -53,6 +53,7 @@ | |||
| 53 | #:use-module (gnu packages patchutils) | 53 | #:use-module (gnu packages patchutils) |
| 54 | #:use-module (gnu packages pdf) | 54 | #:use-module (gnu packages pdf) |
| 55 | #:use-module (gnu packages perl) | 55 | #:use-module (gnu packages perl) |
| 56 | #:use-module (gnu packages python-build) | ||
| 56 | #:use-module (gnu packages python-check) | 57 | #:use-module (gnu packages python-check) |
| 57 | #:use-module (gnu packages python-web) | 58 | #:use-module (gnu packages python-web) |
| 58 | #:use-module (gnu packages python-xyz) | 59 | #:use-module (gnu packages python-xyz) |
| @@ -65,6 +66,7 @@ | |||
| 65 | #:use-module (gnu packages vim) | 66 | #:use-module (gnu packages vim) |
| 66 | #:use-module (gnu packages web) | 67 | #:use-module (gnu packages web) |
| 67 | #:use-module (guix build-system python) | 68 | #:use-module (guix build-system python) |
| 69 | #:use-module (guix build-system pyproject) | ||
| 68 | #:use-module (guix gexp) | 70 | #:use-module (guix gexp) |
| 69 | #:use-module (guix git-download) | 71 | #:use-module (guix git-download) |
| 70 | #:use-module ((guix licenses) #:prefix license:) | 72 | #:use-module ((guix licenses) #:prefix license:) |
| @@ -263,36 +265,43 @@ install.") | |||
| 263 | (file-name (git-file-name name version)) | 265 | (file-name (git-file-name name version)) |
| 264 | (sha256 | 266 | (sha256 |
| 265 | (base32 "06jm82w05qsx3wskch3fm5mpkpj5jmq7r4yram4ixprxc5j8flg8")))) | 267 | (base32 "06jm82w05qsx3wskch3fm5mpkpj5jmq7r4yram4ixprxc5j8flg8")))) |
| 266 | (inputs | 268 | (build-system pyproject-build-system) |
| 267 | (list python-debian python-distro python-libarchive-c python-rstr)) | 269 | (arguments |
| 270 | (list | ||
| 271 | ;; TODO: all tests failed during creation: PermissionError: [Errno 13] | ||
| 272 | ;; Permission denied. | ||
| 273 | #:tests? #f | ||
| 274 | #:phases | ||
| 275 | #~(modify-phases %standard-phases | ||
| 276 | (add-after 'install 'install-doc | ||
| 277 | (lambda _ | ||
| 278 | (let* ((mandir1 (string-append | ||
| 279 | #$output "/share/man/man1")) | ||
| 280 | (docdir (string-append | ||
| 281 | #$output "/share/doc/" #$name "-" #$version))) | ||
| 282 | (invoke "make" "-C" "doc") | ||
| 283 | (mkdir-p mandir1) | ||
| 284 | (install-file "doc/reprotest.1" mandir1) | ||
| 285 | (mkdir-p docdir) | ||
| 286 | (install-file "./README.rst" docdir) | ||
| 287 | (install-file "./README-dev.rst" docdir))))))) | ||
| 268 | (native-inputs | 288 | (native-inputs |
| 269 | (list diffoscope | 289 | (list diffoscope |
| 270 | help2man | 290 | help2man |
| 271 | libfaketime | 291 | libfaketime |
| 272 | python-coverage | ||
| 273 | python-docutils | 292 | python-docutils |
| 274 | python-magic | 293 | python-magic |
| 275 | python-pytest | 294 | python-pytest |
| 295 | python-setuptools | ||
| 276 | python-tlsh | 296 | python-tlsh |
| 277 | python-tox | 297 | python-wheel |
| 278 | unzip | 298 | unzip |
| 279 | xxd)) | 299 | xxd)) |
| 280 | (build-system python-build-system) | 300 | (propagated-inputs |
| 281 | (arguments | 301 | (list python-debian |
| 282 | (list #:phases | 302 | python-distro |
| 283 | #~(modify-phases %standard-phases | 303 | python-libarchive-c |
| 284 | (add-after 'install 'install-doc | 304 | python-rstr)) |
| 285 | (lambda _ | ||
| 286 | (let* ((mandir1 (string-append | ||
| 287 | #$output "/share/man/man1")) | ||
| 288 | (docdir (string-append | ||
| 289 | #$output "/share/doc/" #$name "-" #$version))) | ||
| 290 | (invoke "make" "-C" "doc") | ||
| 291 | (mkdir-p mandir1) | ||
| 292 | (install-file "doc/reprotest.1" mandir1) | ||
| 293 | (mkdir-p docdir) | ||
| 294 | (install-file "./README.rst" docdir) | ||
| 295 | (install-file "./README-dev.rst" docdir))))))) | ||
| 296 | (home-page "https://salsa.debian.org/reproducible-builds/reprotest") | 305 | (home-page "https://salsa.debian.org/reproducible-builds/reprotest") |
| 297 | (synopsis "Build software and check it for reproducibility") | 306 | (synopsis "Build software and check it for reproducibility") |
| 298 | (description "Reprotest builds the same source code twice in different | 307 | (description "Reprotest builds the same source code twice in different |
