Files
nixpkgs/pkgs/development/python-modules/claripy/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

56 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
cachetools,
decorator,
fetchFromGitHub,
pysmt,
pytestCheckHook,
pythonOlder,
setuptools,
typing-extensions,
z3-solver,
}:
buildPythonPackage rec {
pname = "claripy";
version = "9.2.154";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "angr";
repo = "claripy";
tag = "v${version}";
hash = "sha256-90JX+VDWK/yKhuX6D8hbLxjIOS8vGKrN1PKR8iWjt2o=";
};
# z3 does not provide a dist-info, so python-runtime-deps-check will fail
pythonRemoveDeps = [ "z3-solver" ];
build-system = [
setuptools
];
dependencies = [
cachetools
decorator
pysmt
typing-extensions
z3-solver
]
++ z3-solver.requiredPythonModules;
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "claripy" ];
meta = {
description = "Python abstraction layer for constraint solvers";
homepage = "https://github.com/angr/claripy";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ fab ];
};
}