c594a97518
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
64 lines
1 KiB
Nix
64 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, setuptools
|
|
, cachetools
|
|
, decorator
|
|
, fetchFromGitHub
|
|
, future
|
|
, nose
|
|
, pysmt
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
, six
|
|
, z3
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "claripy";
|
|
version = "9.2.23";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "angr";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-geTAvIVgvlGHYc3W2v1jNg2+sfbIhEHmE2uCvT6fIug=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
cachetools
|
|
decorator
|
|
future
|
|
pysmt
|
|
z3
|
|
];
|
|
|
|
checkInputs = [
|
|
nose
|
|
pytestCheckHook
|
|
six
|
|
];
|
|
|
|
postPatch = ''
|
|
# Use upstream z3 implementation
|
|
substituteInPlace setup.cfg \
|
|
--replace "z3-solver == 4.10.2.0" ""
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|