Merge pull request #112481 from fabaff/claripy

This commit is contained in:
Sandro 2021-02-09 09:21:02 +01:00 committed by GitHub
commit 74335e07ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 91 additions and 0 deletions

View file

@ -0,0 +1,52 @@
{ lib
, buildPythonPackage
, cachetools
, decorator
, fetchFromGitHub
, future
, nose
, pysmt
, pythonOlder
, pytestCheckHook
, z3
}:
buildPythonPackage rec {
pname = "claripy";
version = "9.0.5739";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "angr";
repo = pname;
rev = "v${version}";
sha256 = "1aym01f99zwb9w8qwy8gz631ka7g6akzdld0m4ykc5ip0rq70mki";
};
# 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 ];
};
}

View file

@ -0,0 +1,35 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, nose
, pytestCheckHook
, six
}:
buildPythonPackage rec {
pname = "pysmt";
version = "0.9.0";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "051j36kpz11ik9bhvp5jgxzc3h7f18i1pf5ssdhjwyabr0n0zra3";
};
propagatedBuildInputs = [ six ];
checkInputs = [
nose
pytestCheckHook
];
pythonImportsCheck = [ "pysmt" ];
meta = with lib; {
description = "Python library for SMT formulae manipulation and solving";
homepage = "https://github.com/pysmt/pysmt";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -1283,6 +1283,8 @@ in {
class-registry = callPackage ../development/python-modules/class-registry { };
claripy = callPackage ../development/python-modules/claripy { };
cld2-cffi = callPackage ../development/python-modules/cld2-cffi { };
cleo = callPackage ../development/python-modules/cleo { };
@ -5953,6 +5955,8 @@ in {
pysmi = callPackage ../development/python-modules/pysmi { };
pysmt = callPackage ../development/python-modules/pysmt { };
pysnmp = callPackage ../development/python-modules/pysnmp { };
pysnooper = callPackage ../development/python-modules/pysnooper { };