9 buildPythonPackage rec {
10 pname = "keystone-engine";
12 format = "setuptools";
15 inherit pname version;
16 sha256 = "1xahdr6bh3dw5swrc2r8kqa8ljhqlb7k2kxv5mrw5rhcmcnzcyig";
19 setupPyBuildFlags = lib.optionals stdenv.hostPlatform.isLinux [
25 substituteInPlace setup.py --replace \
26 "libkeystone" "${keystone}/lib/libkeystone"
32 pythonImportsCheck = [ "keystone" ];
35 description = "Lightweight multi-platform, multi-architecture assembler framework";
36 homepage = "https://www.keystone-engine.org";
37 maintainers = with maintainers; [ dump_stack ];
38 license = licenses.gpl2Only;