diff options
| author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2025-09-18 14:34:37 +0900 |
|---|---|---|
| committer | 宋文武 <iyzsong@member.fsf.org> | 2025-09-30 14:04:24 +0800 |
| commit | 970169487a4c10384a2da03dcc58e026561bd0c9 (patch) | |
| tree | fa24c7eea63547f943cc3b9dc4d534921f8372ac /gnu/packages/debug.scm | |
| parent | b70e9d6e2a37fdbabc4a6f357c94dec0a2e8872b (diff) | |
gnu: Add python-fiu.
* gnu/packages/debug.scm (python-fiu): New variable.
Closes: guix/guix#2765
Change-Id: I266bd6fb1ca5f201a1934a707b76930d343567b0
Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
Diffstat (limited to 'gnu/packages/debug.scm')
| -rw-r--r-- | gnu/packages/debug.scm | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/debug.scm b/gnu/packages/debug.scm index e6f6415d4a7..c16b05ffcb1 100644 --- a/gnu/packages/debug.scm +++ b/gnu/packages/debug.scm | |||
| @@ -40,6 +40,7 @@ | |||
| 40 | #:use-module (guix build-system gnu) | 40 | #:use-module (guix build-system gnu) |
| 41 | #:use-module (guix build-system cmake) | 41 | #:use-module (guix build-system cmake) |
| 42 | #:use-module (guix build-system go) | 42 | #:use-module (guix build-system go) |
| 43 | #:use-module (guix build-system pyproject) | ||
| 43 | #:use-module (guix build-system qt) | 44 | #:use-module (guix build-system qt) |
| 44 | #:use-module (guix gexp) | 45 | #:use-module (guix gexp) |
| 45 | #:use-module (gnu packages) | 46 | #:use-module (gnu packages) |
| @@ -75,6 +76,7 @@ | |||
| 75 | #:use-module (gnu packages pkg-config) | 76 | #:use-module (gnu packages pkg-config) |
| 76 | #:use-module (gnu packages pretty-print) | 77 | #:use-module (gnu packages pretty-print) |
| 77 | #:use-module (gnu packages python) | 78 | #:use-module (gnu packages python) |
| 79 | #:use-module (gnu packages python-build) | ||
| 78 | #:use-module (gnu packages python-check) | 80 | #:use-module (gnu packages python-check) |
| 79 | #:use-module (gnu packages python-xyz) | 81 | #:use-module (gnu packages python-xyz) |
| 80 | #:use-module (gnu packages qt) | 82 | #:use-module (gnu packages qt) |
| @@ -1130,3 +1132,31 @@ to mark points of failure inside your code | |||
| 1130 | and to enable/disable the failure of those points.") | 1132 | and to enable/disable the failure of those points.") |
| 1131 | (home-page "https://blitiri.com.ar/p/libfiu") | 1133 | (home-page "https://blitiri.com.ar/p/libfiu") |
| 1132 | (license license:public-domain))) | 1134 | (license license:public-domain))) |
| 1135 | |||
| 1136 | (define-public python-fiu | ||
| 1137 | (package | ||
| 1138 | (name "python-fiu") | ||
| 1139 | (version "1.2") | ||
| 1140 | (source (package-source fiu)) | ||
| 1141 | (build-system pyproject-build-system) | ||
| 1142 | (arguments | ||
| 1143 | (list #:phases #~(modify-phases %standard-phases | ||
| 1144 | (add-after 'unpack 'enter-python-dir | ||
| 1145 | (lambda _ (chdir "bindings/python"))) | ||
| 1146 | (add-before 'build 'set-env | ||
| 1147 | (lambda* (#:key inputs #:allow-other-keys) | ||
| 1148 | (setenv "PLIBPATH" | ||
| 1149 | (string-append (assoc-ref inputs "fiu") | ||
| 1150 | "/lib"))))) | ||
| 1151 | #:tests? #f)) ; tests run in fiu | ||
| 1152 | (native-inputs (list python-setuptools python-wheel)) | ||
| 1153 | (inputs (list fiu)) | ||
| 1154 | (synopsis "Python binding for fiu (fault injection in userspace)") | ||
| 1155 | (description "This package includes two Python modules: | ||
| 1156 | @enumerate | ||
| 1157 | @item @code{fiu} is a wrapper for @code{libfiu}, the fault injection C library. | ||
| 1158 | @item @code{fiu_ctrl} provide an easy way run a command | ||
| 1159 | with @code{libfiu} enabled, and controlling the failure points dynamically. | ||
| 1160 | @end enumerate") | ||
| 1161 | (home-page (package-home-page fiu)) | ||
| 1162 | (license (package-license fiu)))) | ||
