depot/third_party/nixpkgs/pkgs/development/python-modules/claripy/default.nix
Default email ed0c4a69f0 Project import generated by Copybara.
GitOrigin-RevId: e3652e0735fbec227f342712f180f4f21f0594f2
2023-03-31 00:05:00 +02:00

60 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, setuptools
, cachetools
, decorator
, fetchFromGitHub
, future
, pysmt
, pythonOlder
, pytestCheckHook
, z3
}:
buildPythonPackage rec {
pname = "claripy";
version = "9.2.44";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "angr";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-+PGCPM3EbdeS7ftqmJBd2F5HOdoXNtBWHvEEWq7JKTs=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
cachetools
decorator
future
pysmt
z3
];
nativeCheckInputs = [
pytestCheckHook
];
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 ];
};
}