{ stdenv, lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, rustPlatform, libiconv, }: buildPythonPackage (finalAttrs: { pname = "evtx"; version = "0.15.0"; pyproject = true; src = fetchFromGitHub { owner = "omerbenamram"; repo = "pyevtx-rs"; tag = finalAttrs.version; hash = "sha256-ZxKTUUOH9mu6Tji168SJgBPCI+9StW2Pn9NiB1379g0="; }; cargoDeps = rustPlatform.fetchCargoVendor { inherit (finalAttrs) pname version src; hash = "sha256-hCoaG8A385PHBoJtQfJOsnBX3B/FG+uAVwV88bKzeug="; }; 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/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; })