nixpkgs/pkgs/development/python-modules/keystone-engine/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

40 lines
837 B
Nix

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