mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
61 lines
1.0 KiB
Nix
61 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, setuptools
|
|
, cachetools
|
|
, decorator
|
|
, fetchFromGitHub
|
|
, future
|
|
, pysmt
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
, z3
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "claripy";
|
|
version = "9.2.51";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "angr";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-QitBUufRt7AIeX19fvjXEhMtE90Cw2fL7EPj1OSjBug=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|