mirror of
https://github.com/huggingface/kernels.git
synced 2025-10-20 21:10:02 +08:00
* Add the `kernels check` subcommand This subcommand checks a given kernel. Currently it applies the same ABI checks as `kernel-abi-check` in `kernel-builder`. * Print an error when `build` contains files * Forgot to update has_issues in two places
28 lines
603 B
Nix
28 lines
603 B
Nix
{
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
rustPlatform,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "kernel-abi-check";
|
|
version = "0.6.2";
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "kernel_abi_check";
|
|
hash = "sha256-goWC7SK79FVNEvkp3bISBwbOqdSrmobANtrWIve9/Ys=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.fetchCargoVendor {
|
|
inherit pname version src sourceRoot;
|
|
hash = "sha256-+1jdbKsDKmG+bf0NEVYMv8t7Meuge1z2cgYfbdB9q8A=";
|
|
};
|
|
|
|
sourceRoot = "kernel_abi_check-${version}/bindings/python";
|
|
|
|
pyproject = true;
|
|
|
|
nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ];
|
|
}
|