python3Packages.keystone-engine: init at 0.9.2

This commit is contained in:
Mikhail Klementev 2021-01-29 12:18:10 +00:00 committed by Jonathan Ringer
parent 8cc2318965
commit c523108906
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,28 @@
{ lib, buildPythonPackage, fetchPypi, keystone }:
buildPythonPackage rec {
pname = "keystone-engine";
version = "0.9.2";
src = fetchPypi {
inherit pname version;
sha256 = "1xahdr6bh3dw5swrc2r8kqa8ljhqlb7k2kxv5mrw5rhcmcnzcyig";
};
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;
};
}

View file

@ -3479,6 +3479,8 @@ in {
keyrings-alt = callPackage ../development/python-modules/keyrings-alt { };
keystone-engine = callPackage ../development/python-modules/keystone-engine { };
keyutils = callPackage ../development/python-modules/keyutils { inherit (pkgs) keyutils; };
kicad = disabledIf isPy27 (toPythonModule (pkgs.kicad.override { python3 = python; }).src);