2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonAtLeast,
|
|
|
|
pythonOlder,
|
|
|
|
pytestCheckHook,
|
|
|
|
setuptools,
|
|
|
|
yasm,
|
2021-10-04 12:37:57 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "distorm3";
|
2021-10-04 12:37:57 +00:00
|
|
|
version = "3.5.2";
|
2024-06-05 15:53:02 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# Still uses distutils, https://github.com/gdabah/distorm/issues/191
|
|
|
|
disabled = pythonOlder "3.5" || pythonAtLeast "3.12";
|
2021-10-04 12:37:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gdabah";
|
|
|
|
repo = "distorm";
|
2024-06-05 15:53:02 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-Fhvxag2UN5wXEySP1n1pCahMQR/SfssywikeLmiASwQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-10-04 12:37:57 +00:00
|
|
|
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";
|
2024-06-05 15:53:02 +00:00
|
|
|
changelog = "https://github.com/gdabah/distorm/releases/tag/${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
2021-10-04 12:37:57 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|