nixpkgs/pkgs/development/python-modules/claripy/default.nix
2022-08-26 14:13:00 +02:00

59 lines
994 B
Nix

{ lib
, buildPythonPackage
, cachetools
, decorator
, fetchFromGitHub
, future
, nose
, pysmt
, pythonOlder
, pytestCheckHook
, six
, z3
}:
buildPythonPackage rec {
pname = "claripy";
version = "9.2.15";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "angr";
repo = pname;
rev = "v${version}";
hash = "sha256-3v5te+j3I4yzxoBO8kY8VGLCrWfb1iOz9GHzun1DT0I=";
};
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 ];
};
}