Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136{ lib, stdenv, buildPythonPackage, colorama, deptry, dncil, dnfile, fetchFromGitHub, humanize, ida-netnode, ida-settings, jschema-to-python, msgspec, mypy-protobuf, mypy, networkx, pefile, protobuf, psutil, pydantic, pyelftools, pyghidra, pygithub, pytest-instafail, pytest-sugar, pytestCheckHook, python-flirt, pyyaml, requests, rich, ruamel-yaml, sarif-om, setuptools-scm, setuptools, stix2, types-colorama, types-protobuf, types-psutil, types-pyyaml, types-requests, viv-utils, vivisect, writableTmpDirAsHomeHook, xmltodict,}:
buildPythonPackage (finalAttrs: { pname = "flare-capa"; version = "10.0.0"; pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub { owner = "mandiant"; repo = "capa"; tag = "v${finalAttrs.version}"; hash = "sha256-Gs3Dq8JvZ1frsAtvMwbasRZ5RawTyEG0JicFfVYtH9k="; fetchSubmodules = true; };
build-system = [ setuptools setuptools-scm ];
dependencies = [ colorama dncil dnfile humanize ida-netnode ida-settings msgspec networkx pefile protobuf pydantic pyelftools python-flirt pyyaml rich ruamel-yaml viv-utils vivisect xmltodict ];
optional-dependencies = { ghidra = [ pyghidra ]; scripts = [ jschema-to-python psutil requests sarif-om stix2 ]; };
nativeCheckInputs = [ pygithub pytestCheckHook pytest-instafail pytest-sugar types-colorama types-protobuf types-psutil types-pyyaml types-requests writableTmpDirAsHomeHook ];
pythonImportsCheck = [ "capa" ];
disabledTests = [ # AssertionError "test_is_dev_environment" "test_rule_cache_dev_environment" "test_scripts" "test_binexport_scripts" ];
meta = { description = "Tool to identify capabilities in executable files"; homepage = "https://github.com/mandiant/capa"; changelog = "https://github.com/mandiant/capa/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ fab ]; mainProgram = "capa"; # Never built on darwin since first introduction in nixpkgs # see https://hydra.nixos.org/build/345235630 broken = stdenv.hostPlatform.isDarwin; };})