1 { lib, stdenv, buildPythonPackage, fetchPypi, keystone }:
3 buildPythonPackage rec {
4 pname = "keystone-engine";
9 sha256 = "1xahdr6bh3dw5swrc2r8kqa8ljhqlb7k2kxv5mrw5rhcmcnzcyig";
12 setupPyBuildFlags = lib.optionals stdenv.isLinux [ "--plat-name" "linux" ];
15 substituteInPlace setup.py --replace \
16 "libkeystone" "${keystone}/lib/libkeystone"
22 pythonImportsCheck = [ "keystone" ];
25 description = "Lightweight multi-platform, multi-architecture assembler framework";
26 homepage = "https://www.keystone-engine.org";
27 maintainers = with maintainers; [ dump_stack ];
28 license = licenses.gpl2Only;