nixpkgs/pkgs/development/python-modules/libear/default.nix
Michael Daniels 5ed07317e9
treewide: change 'format = "other";' to 'pyproject = false;'
Entirely find-and-replace based.

A few usages that would cause rebuilds if changed remain.

This PR should have 0 rebuilds.
2026-01-12 17:50:37 -05:00

37 lines
785 B
Nix

{
lib,
llvmPackages,
buildPythonPackage,
}:
let
inherit (llvmPackages) clang-unwrapped;
in
buildPythonPackage rec {
pname = "libear";
inherit (clang-unwrapped) version;
pyproject = false;
src = clang-unwrapped.lib + "/lib/libear";
dontUnpack = true;
installPhase = ''
LIBPATH="$(toPythonPath "$out")/libear"
mkdir -p "$LIBPATH"
install -t "$LIBPATH" $src/*
'';
pythonImportsCheck = [ "libear" ];
meta = {
description = "Hooks into build systems to listen to which files are opened";
homepage = "https://github.com/llvm/llvm-project/tree/llvmorg-${version}/clang/tools/scan-build-py/lib/libear";
license = with lib.licenses; [
asl20
llvm-exception
];
maintainers = with lib.maintainers; [ RossSmyth ];
};
}