8a45d4525b
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
57 lines
982 B
Nix
57 lines
982 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cachetools
|
|
, decorator
|
|
, fetchFromGitHub
|
|
, future
|
|
, nose
|
|
, pysmt
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
, z3
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "claripy";
|
|
version = "9.1.12332";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "angr";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-YrR8OkDoop6kHAuk4cM4STYYOjjaMLZCQuE07/5IXqs=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cachetools
|
|
decorator
|
|
future
|
|
pysmt
|
|
z3
|
|
];
|
|
|
|
checkInputs = [
|
|
nose
|
|
pytestCheckHook
|
|
];
|
|
|
|
postPatch = ''
|
|
# Use upstream z3 implementation
|
|
substituteInPlace setup.py \
|
|
--replace "z3-solver>=4.8.5.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 ];
|
|
};
|
|
}
|