[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/13: gnu: python-capstone: Fix tests.
From: |
guix-commits |
Subject: |
06/13: gnu: python-capstone: Fix tests. |
Date: |
Sat, 7 Jan 2023 15:14:18 -0500 (EST) |
mbakke pushed a commit to branch master
in repository guix.
commit aa861a3980ede130080ed492c62b097ee6f2caf7
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Sat Jan 7 14:49:25 2023 +0100
gnu: python-capstone: Fix tests.
* gnu/packages/engineering.scm (python-capstone)[arguments]: Override check
phase. While here, remove label usage in chdir-and-fix-setup-py phase.
---
gnu/packages/engineering.scm | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index a92530d019..99ae61973d 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -1629,7 +1629,7 @@ bindings for Python, Java, OCaml and more.")
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'chdir-and-fix-setup-py
- (lambda _
+ (lambda* (#:key inputs #:allow-other-keys)
(chdir "bindings/python")
;; Do not build the library again, because we already have it.
(substitute* "setup.py" ((".* build_libraries.*") ""))
@@ -1637,8 +1637,13 @@ bindings for Python, Java, OCaml and more.")
;; library.
(substitute* "capstone/__init__.py"
(("pkg_resources.resource_filename.*")
- (string-append "'" (assoc-ref %build-inputs "capstone")
"/lib',\n")))
- #t)))))))
+ (string-append "'" (dirname (search-input-file
+ inputs "lib/libcapstone.so"))
+ "',\n")))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "make" "check")))))))))
(define-public python-esptool-3.0
- branch master updated (7f96726607 -> d15972194a), guix-commits, 2023/01/07
- 04/13: gnu: python-openid-teams: Add missing inputs., guix-commits, 2023/01/07
- 02/13: gnu: Use old setuptools in packages that relies on use_2to3 conversion., guix-commits, 2023/01/07
- 01/13: gnu: python-setuptools: Add 57.5.0., guix-commits, 2023/01/07
- 05/13: gnu: Remove python-trollius-redis., guix-commits, 2023/01/07
- 03/13: gnu: python-openid-cla: Add missing inputs., guix-commits, 2023/01/07
- 07/13: gnu: Remove python-pyev., guix-commits, 2023/01/07
- 12/13: gnu: ipxe: Use G-expression., guix-commits, 2023/01/07
- 06/13: gnu: python-capstone: Fix tests.,
guix-commits <=
- 08/13: gnu: python-pytidylib: Fix failing test., guix-commits, 2023/01/07
- 11/13: gnu: python-funcy: Use pyproject-build-system., guix-commits, 2023/01/07
- 13/13: gnu: ipxe: Enable syslinux only on i686-linux and x86_64-linux., guix-commits, 2023/01/07
- 09/13: gnu: python-gyp: Update to 0.0.0-1.9d09418., guix-commits, 2023/01/07
- 10/13: gnu: python-whatever: Use pyproject-build-system., guix-commits, 2023/01/07