1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "dncil";
12 version = "1.0.2";
13 pyproject = true;
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchFromGitHub {
18 owner = "mandiant";
19 repo = "dncil";
20 tag = "v${version}";
21 hash = "sha256-bndkiXkIYTd071J+mgkmJmA+9J5yJ+9/oDfAypN7wYo=";
22 };
23
24 build-system = [ setuptools ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "dncil" ];
29
30 meta = {
31 description = "Module to disassemble Common Intermediate Language (CIL) instructions";
32 homepage = "https://github.com/mandiant/dncil";
33 changelog = "https://github.com/mandiant/dncil/releases/tag/v${version}";
34 license = lib.licenses.asl20;
35 maintainers = with lib.maintainers; [ fab ];
36 };
37}