summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/dncil/default.nix
blob: 264868101f816c70872a525e389eb5a4b25e5e9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "dncil";
  version = "1.0.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "mandiant";
    repo = "dncil";
    tag = "v${version}";
    hash = "sha256-bndkiXkIYTd071J+mgkmJmA+9J5yJ+9/oDfAypN7wYo=";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "dncil" ];

  meta = {
    description = "Module to disassemble Common Intermediate Language (CIL) instructions";
    homepage = "https://github.com/mandiant/dncil";
    changelog = "https://github.com/mandiant/dncil/releases/tag/v${version}";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ fab ];
  };
}