depot/third_party/nixpkgs/pkgs/development/python-modules/keystone-engine/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

28 lines
691 B
Nix

{ 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;
};
}