summary refs log tree commit diff
path: root/pkgs/development/python-modules/distorm3/default.nix
blob: 715e8c357143681c4ff283287a0f31dc4f6dfb35 (plain) (blame)
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
35
36
37
38
39
40
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, yasm
}:

buildPythonPackage rec {
  pname = "distorm3";
  version = "3.5.2";

  disabled = pythonOlder "3.5";

  src = fetchFromGitHub {
    owner = "gdabah";
    repo = "distorm";
    rev = version;
    sha256 = "012bh1l2w7i9q8rcnznj3x0lra09d5yxd3r42cbrqdwl1mmg26qn";
  };

  checkInputs = [
    pytestCheckHook
    yasm
  ];

  disabledTests = [
    # TypeError: __init__() missing 3 required positional...
    "test_dummy"
  ];

  pythonImportsCheck = [ "distorm3" ];

  meta = with lib; {
    description = "Disassembler library for x86/AMD64";
    homepage = "https://github.com/gdabah/distorm";
    license = licenses.bsd3;
    maintainers = with maintainers; [ fab ];
  };
}