mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-27 08:20:13 +00:00
32 lines
701 B
Nix
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 ]);
|
|
};
|
|
}
|