@@ -0,0 +1,28 @@
1+{ lib, buildPythonPackage, fetchPypi, keystone }:
2+
3+buildPythonPackage rec {
4+ pname = "keystone-engine";
5+ version = "0.9.2";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "1xahdr6bh3dw5swrc2r8kqa8ljhqlb7k2kxv5mrw5rhcmcnzcyig";
10+ };
11+
12+ preConfigure = ''
13+ substituteInPlace setup.py --replace \
14+ "libkeystone" "${keystone}/lib/libkeystone"
15+ '';
16+
17+ # No tests
18+ doCheck = false;
19+
20+ pythonImportsCheck = [ "keystone" ];
21+
22+ meta = with lib; {
23+ description = "Lightweight multi-platform, multi-architecture assembler framework";
24+ homepage = "https://www.keystone-engine.org";
25+ maintainers = with maintainers; [ dump_stack ];
26+ license = licenses.gpl2Only;
27+ };
28+}