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.
This commit is contained in:
		
							parent
							
								
									b9a886bbb3
								
							
						
					
					
						commit
						aa861a3980
					
				
					 1 changed files with 8 additions and 3 deletions
				
			
		|  | @ -1629,7 +1629,7 @@ bindings for Python, Java, OCaml and more.") | ||||||
|      `(#:phases |      `(#:phases | ||||||
|        (modify-phases %standard-phases |        (modify-phases %standard-phases | ||||||
|          (add-after 'unpack 'chdir-and-fix-setup-py |          (add-after 'unpack 'chdir-and-fix-setup-py | ||||||
|            (lambda _ |            (lambda* (#:key inputs #:allow-other-keys) | ||||||
|              (chdir "bindings/python") |              (chdir "bindings/python") | ||||||
|              ;; Do not build the library again, because we already have it. |              ;; Do not build the library again, because we already have it. | ||||||
|              (substitute* "setup.py" ((".*   build_libraries.*") "")) |              (substitute* "setup.py" ((".*   build_libraries.*") "")) | ||||||
|  | @ -1637,8 +1637,13 @@ bindings for Python, Java, OCaml and more.") | ||||||
|              ;; library. |              ;; library. | ||||||
|              (substitute* "capstone/__init__.py" |              (substitute* "capstone/__init__.py" | ||||||
|                (("pkg_resources.resource_filename.*") |                (("pkg_resources.resource_filename.*") | ||||||
|                 (string-append "'" (assoc-ref %build-inputs "capstone") "/lib',\n"))) |                 (string-append "'" (dirname (search-input-file | ||||||
|              #t))))))) |                                              inputs "lib/libcapstone.so")) | ||||||
|  |                                "',\n"))))) | ||||||
|  |          (replace 'check | ||||||
|  |            (lambda* (#:key tests? #:allow-other-keys) | ||||||
|  |              (when tests? | ||||||
|  |                (invoke "make" "check"))))))))) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| (define-public python-esptool-3.0 | (define-public python-esptool-3.0 | ||||||
|  |  | ||||||
		Reference in a new issue