biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / miasm / default.nix
blobddbbd1262c536ec6e4a8d650f9d999a1313ab6f2
2   buildPythonPackage,
3   fetchFromGitHub,
4   lib,
5   future,
6   gcc,
7   llvmlite,
8   parameterized,
9   pycparser,
10   pyparsing,
11   z3-solver,
12   setuptools,
14 let
15   commit = "90dc1671b59077ee27c3d44d9d536d6659eb3bbe";
17 buildPythonPackage rec {
18   pname = "miasm";
19   version = "0.1.5-unstable-2024-04-28";
21   pyproject = true;
22   build-system = [ setuptools ];
24   src = fetchFromGitHub {
25     owner = "cea-sec";
26     repo = "miasm";
27     rev = commit;
28     hash = "sha256-nkRcirJLmTwSL7lwd+Yk6mteU3YPnm5ekJ4eFF5FmYo=";
29   };
31   patches = [
32     #  Use a valid semver as now required by setuptools
33     ./0001-setup.py-use-valid-semver.patch
35     # Removes the (unfree) IDAPython dependency
36     ./0002-core-remove-IDAPython-dependency.patch
37   ];
39   dependencies = [
40     future
41     llvmlite
42     parameterized
43     pycparser
44     pyparsing
45     z3-solver
46   ];
48   buildInputs = [ gcc ];
50   pythonImportsCheck = [ "miasm" ];
52   meta = {
53     description = "Reverse engineering framework in Python";
54     homepage = "https://github.com/cea-sec/miasm";
55     changelog = "https://github.com/cea-sec/miasm/blob/${commit}/CHANGELOG.md";
56     license = lib.licenses.gpl2Plus;
57     maintainers = with lib.maintainers; [ msanft ];
58   };