My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/claripy/default.nix

59 lines
992 B

{ lib
, buildPythonPackage
, cachetools
, decorator
, fetchFromGitHub
, future
, nose
, pysmt
, pythonOlder
, pytestCheckHook
, six
, z3
}:
buildPythonPackage rec {
pname = "claripy";
version = "9.2.3";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "angr";
repo = pname;
rev = "v${version}";
hash = "sha256-O2nkGIQfjGmhrqBPoMI97DsCvOUZix0VcUHwmDyF40Q=";
};
propagatedBuildInputs = [
cachetools
decorator
future
pysmt
z3
];
checkInputs = [
nose
pytestCheckHook
six
];
postPatch = ''
# Use upstream z3 implementation
substituteInPlace setup.cfg \
--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 ];
};
}