[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#69074] [PATCH 06/11] gnu: Add python-claripy.
From: |
soeren |
Subject: |
[bug#69074] [PATCH 06/11] gnu: Add python-claripy. |
Date: |
Thu, 11 Jul 2024 23:27:17 +0200 |
From: Sören Tempel <soeren@soeren-tempel.net>
* gnu/packages/python-xyz.scm (python-claripy): New variable.
---
gnu/packages/python-xyz.scm | 40 +++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index df9f5d742c..dc92d4db08 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -33787,6 +33787,46 @@ (define-public python-opcodes
and BMI2).")
(license license:bsd-2))))
+(define-public python-claripy
+ (package
+ (name "python-claripy")
+ ;; Must be the same version as python-angr.
+ (version "9.2.46")
+ (source
+ (origin
+ ;; Fetching from Git as pypi release doesn't include all test files.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/angr/claripy")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0nmawpi1596d9plafrp2db36cjsidy2fagkzkja51jwlx2m1ngai"))
+ (modules '((guix build utils)))
+ (snippet '(begin
+ (substitute* "setup.cfg"
+ ;; Relax the z3 version constraint.
+ ;; See https://github.com/angr/claripy/commit/d1fe2df
+ (("z3-solver==4.10.2.0")
+ ""))))))
+ (build-system pyproject-build-system)
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "tests"
+ (invoke "python" "-m" "unittest"))))))))
+ (propagated-inputs (list python-cachetools python-decorator python-pysmt
+ z3))
+ (home-page "https://github.com/angr/claripy")
+ (synopsis "Abstraction layer for constraint solvers")
+ (description
+ "This Python module provides an abstraction layer for interacting
+with constraint solvers. Specifically, it is intended to be used with
+SMT solvers and is built on top of the Z3 solver.")
+ (license license:bsd-2)))
+
(define-public python-pysmt
(package
(name "python-pysmt")
- [bug#69074] [PATCH 01/11] gnu: Add python-keystone-engine., soeren, 2024/07/11
- [bug#69074] [PATCH 07/11] gnu: Add python-archinfo., soeren, 2024/07/11
- [bug#69074] [PATCH 05/11] gnu: Add python-pysmt., soeren, 2024/07/11
- [bug#69074] [PATCH 03/11] gnu: Add python-nampa., soeren, 2024/07/11
- [bug#69074] [PATCH 10/11] gnu: Add python-ailment., soeren, 2024/07/11
- [bug#69074] [PATCH 02/11] gnu: Add python-mulpyplexer., soeren, 2024/07/11
- [bug#69074] [PATCH 08/11] gnu: Add python-pyvex., soeren, 2024/07/11
- [bug#69074] [PATCH 06/11] gnu: Add python-claripy.,
soeren <=
- [bug#69074] [PATCH 11/11] gnu: Add python-angr., soeren, 2024/07/11
- [bug#69074] [PATCH 04/11] gnu: Add python-rpyc., soeren, 2024/07/11
- [bug#69074] [PATCH 09/11] gnu: Add python-cle., soeren, 2024/07/11