nixpkgs-suyu/pkgs/development/python-modules/distorm3/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

40 lines
767 B
Nix

{ 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";
};
nativeCheckInputs = [
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 ];
};
}