2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
cachetools,
|
|
|
|
decorator,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pysmt,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pythonRelaxDepsHook,
|
|
|
|
setuptools,
|
|
|
|
z3-solver,
|
2021-02-13 14:23:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "claripy";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "9.2.107";
|
2023-10-19 13:55:26 +00:00
|
|
|
pyproject = true;
|
2022-01-19 23:45:15 +00:00
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
disabled = pythonOlder "3.11";
|
2021-02-13 14:23:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "angr";
|
2023-10-19 13:55:26 +00:00
|
|
|
repo = "claripy";
|
2023-01-11 07:51:40 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-89wh/SuwxOuORk3S42VA/cJh1GACFWB4ceUxp2OszQM=";
|
2021-02-13 14:23:35 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
# z3 does not provide a dist-info, so python-runtime-deps-check will fail
|
|
|
|
pythonRemoveDeps = [ "z3-solver" ];
|
|
|
|
|
|
|
|
build-system = [
|
|
|
|
pythonRelaxDepsHook
|
2022-09-30 11:47:45 +00:00
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2021-02-13 14:23:35 +00:00
|
|
|
cachetools
|
|
|
|
decorator
|
|
|
|
pysmt
|
2024-01-02 11:29:13 +00:00
|
|
|
z3-solver
|
2024-04-21 15:54:59 +00:00
|
|
|
] ++ z3-solver.requiredPythonModules;
|
2021-02-13 14:23:35 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-02-13 14:23:35 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonImportsCheck = [ "claripy" ];
|
2021-02-13 14:23:35 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python abstraction layer for constraint solvers";
|
|
|
|
homepage = "https://github.com/angr/claripy";
|
|
|
|
license = with licenses; [ bsd2 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|