mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 00:53:12 +03:00
Merge pull request #112481 from fabaff/claripy
This commit is contained in:
commit
74335e07ba
52
pkgs/development/python-modules/claripy/default.nix
Normal file
52
pkgs/development/python-modules/claripy/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
35
pkgs/development/python-modules/pysmt/default.nix
Normal file
35
pkgs/development/python-modules/pysmt/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user