mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 13:13:33 +00:00
53 lines
939 B
Nix
53 lines
939 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cachetools
|
|
, decorator
|
|
, fetchFromGitHub
|
|
, future
|
|
, nose
|
|
, pysmt
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
, z3
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "claripy";
|
|
version = "9.0.6885";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "angr";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-UCO6kXI4W/fCFgevXaRrGMjMH3ZhG7dXmFi+pemX9sE=";
|
|
};
|
|
|
|
# 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 ];
|
|
};
|
|
}
|