2021-02-13 14:23:35 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, cachetools
|
|
|
|
, decorator
|
|
|
|
, fetchFromGitHub
|
|
|
|
, future
|
|
|
|
, nose
|
|
|
|
, pysmt
|
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
|
|
|
, z3
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "claripy";
|
2021-10-28 06:52:43 +00:00
|
|
|
version = "9.0.10339";
|
2021-02-13 14:23:35 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "angr";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-10-28 06:52:43 +00:00
|
|
|
sha256 = "sha256-pi/XMVk50zVCW+MLP1Dsm5amJ55PHE4Ey4nIvhCwiwk=";
|
2021-02-13 14:23:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Use upstream z3 implementation
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "z3-solver>=4.8.5.0" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cachetools
|
|
|
|
decorator
|
|
|
|
future
|
|
|
|
pysmt
|
|
|
|
z3
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
nose
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "claripy" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python abstraction layer for constraint solvers";
|
|
|
|
homepage = "https://github.com/angr/claripy";
|
|
|
|
license = with licenses; [ bsd2 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|