blob: b2b730e2b881dec0c5d594d39f9e5a87f9ea7e6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{
lib,
stdenv,
buildPythonPackage,
fetchPypi,
keystone,
}:
buildPythonPackage rec {
pname = "keystone-engine";
version = "0.9.2";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "1xahdr6bh3dw5swrc2r8kqa8ljhqlb7k2kxv5mrw5rhcmcnzcyig";
};
setupPyBuildFlags = lib.optionals stdenv.hostPlatform.isLinux [
"--plat-name"
"linux"
];
preConfigure = ''
substituteInPlace setup.py --replace \
"libkeystone" "${keystone}/lib/libkeystone"
'';
# No tests
doCheck = false;
pythonImportsCheck = [ "keystone" ];
meta = {
description = "Lightweight multi-platform, multi-architecture assembler framework";
homepage = "https://www.keystone-engine.org";
maintainers = with lib.maintainers; [ dump_stack ];
license = lib.licenses.gpl2Only;
};
}
|