Files
nixpkgs/pkgs/development/python-modules/libloot/default.nix
2026-11-08 01:30:41 +01:00

32 lines
701 B
Nix

{
buildPythonPackage,
lib,
libloot-native,
rustPlatform,
}:
buildPythonPackage {
inherit (libloot-native) version src cargoDeps; # nixpkgs-update: no auto update
pname = "libloot";
pyproject = true;
buildAndTestSubdir = "python";
nativeBuildInputs = with rustPlatform; [
cargoSetupHook
maturinBuildHook
];
# no tests
doCheck = false;
pythonImportsCheck = [ "loot" ];
meta = {
inherit (libloot-native.meta) license platforms;
description = "Experimental Python wrapper around libloot";
homepage = "https://github.com/loot/libloot/tree/master/python";
maintainers = libloot-native.meta.maintainers ++ (with lib.maintainers; [ RoGreat ]);
};
}