2021-12-30 13:39:12 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, keystone }:
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "keystone-engine";
|
|
|
|
version = "0.9.2";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1xahdr6bh3dw5swrc2r8kqa8ljhqlb7k2kxv5mrw5rhcmcnzcyig";
|
|
|
|
};
|
|
|
|
|
2021-12-30 13:39:12 +00:00
|
|
|
setupPyBuildFlags = lib.optionals stdenv.isLinux [ "--plat-name" "linux" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace setup.py --replace \
|
|
|
|
"libkeystone" "${keystone}/lib/libkeystone"
|
|
|
|
'';
|
|
|
|
|
|
|
|
# No tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "keystone" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Lightweight multi-platform, multi-architecture assembler framework";
|
|
|
|
homepage = "https://www.keystone-engine.org";
|
|
|
|
maintainers = with maintainers; [ dump_stack ];
|
|
|
|
license = licenses.gpl2Only;
|
|
|
|
};
|
|
|
|
}
|