depot/third_party/nixpkgs/pkgs/development/python-modules/keystone-engine/default.nix
Default email a425ba4985 Project import generated by Copybara.
GitOrigin-RevId: 5b091d4fbe3b7b7493c3b46fe0842e4b30ea24b3
2021-12-30 14:39:12 +01:00

30 lines
778 B
Nix

{ lib, stdenv, buildPythonPackage, fetchPypi, keystone }:
buildPythonPackage rec {
pname = "keystone-engine";
version = "0.9.2";
src = fetchPypi {
inherit pname version;
sha256 = "1xahdr6bh3dw5swrc2r8kqa8ljhqlb7k2kxv5mrw5rhcmcnzcyig";
};
setupPyBuildFlags = lib.optionals stdenv.isLinux [ "--plat-name" "linux" ];
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;
};
}