Files
nixpkgs/pkgs/development/python-modules/evtx/default.nix
T
2026-01-04 17:24:10 +01:00

47 lines
1.0 KiB
Nix

{
stdenv,
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
rustPlatform,
libiconv,
}:
buildPythonPackage rec {
pname = "evtx";
version = "0.11.0";
pyproject = true;
src = fetchFromGitHub {
owner = "omerbenamram";
repo = "pyevtx-rs";
tag = version;
hash = "sha256-06pRNGEUmk2llD5CPbgHiJSHTR8tm/nv0eJL1UKHPEM=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-POEqKRJ/g0bWYs89yrVyD4RFhc7iq+5J67P0rowB2/g=";
};
nativeBuildInputs = with rustPlatform; [
cargoSetupHook
maturinBuildHook
];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "evtx" ];
meta = {
description = "Bindings for evtx";
homepage = "https://github.com/omerbenamram/pyevtx-rs";
changelog = "https://github.com/omerbenamram/pyevtx-rs/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}