2021-10-04 12:37:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
|
|
|
, yasm
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "distorm3";
|
2021-10-04 12:37:57 +00:00
|
|
|
version = "3.5.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-04 12:37:57 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gdabah";
|
|
|
|
repo = "distorm";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "012bh1l2w7i9q8rcnznj3x0lra09d5yxd3r42cbrqdwl1mmg26qn";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-10-04 12:37:57 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
yasm
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# TypeError: __init__() missing 3 required positional...
|
|
|
|
"test_dummy"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "distorm3" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-10-04 12:37:57 +00:00
|
|
|
description = "Disassembler library for x86/AMD64";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/gdabah/distorm";
|
|
|
|
license = licenses.bsd3;
|
2021-10-04 12:37:57 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|