mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
Merge pull request #172354 from fabaff/zircolite
evtx: init at 0.7.2, python310Packages.evtx: init at 0.7.3
This commit is contained in:
commit
8254e3bd92
48
pkgs/development/python-modules/evtx/default.nix
Normal file
48
pkgs/development/python-modules/evtx/default.nix
Normal file
@ -0,0 +1,48 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, rustPlatform
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "evtx";
|
||||
version = "0.7.3";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "omerbenamram";
|
||||
repo = "pyevtx-rs";
|
||||
rev = version;
|
||||
sha256 = "sha256-59iEmgF1m+Yr5k4oxZGqMs5oMZxToUFYuwQDeLEQ2jY=";
|
||||
};
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||
inherit src;
|
||||
name = "${pname}-${version}";
|
||||
sha256 = "sha256-Q2SpJohLSQCMYmx1ZMWZ7a/NC0lPsHkwxom00qVooNM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with rustPlatform; [
|
||||
cargoSetupHook
|
||||
maturinBuildHook
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"evtx"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Bindings for evtx";
|
||||
homepage = "https://github.com/omerbenamram/pyevtx-rs";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
31
pkgs/tools/security/evtx/default.nix
Normal file
31
pkgs/tools/security/evtx/default.nix
Normal file
@ -0,0 +1,31 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "evtx";
|
||||
version = "0.7.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "omerbenamram";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-T165PZhjuX5tUENZoO6x1u2MpMQTfv9dGRmxyNY2ACg=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-qcjJoXB0DV1Z5bhGrtyJzfWqE+tVWBOYMJEd+MWFcD8=";
|
||||
|
||||
postPatch = ''
|
||||
# CLI tests will fail in the sandbox
|
||||
rm tests/test_cli_interactive.rs
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Parser for the Windows XML Event Log (EVTX) format";
|
||||
homepage = "https://github.com/omerbenamram/evtx";
|
||||
license = with licenses; [ asl20 /* or */ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -5382,6 +5382,8 @@ with pkgs;
|
||||
|
||||
evil-winrm = callPackage ../tools/security/evil-winrm { };
|
||||
|
||||
evtx = callPackage ../tools/security/evtx { };
|
||||
|
||||
luckybackup = libsForQt5.callPackage ../tools/backup/luckybackup {
|
||||
ssh = openssh;
|
||||
};
|
||||
|
@ -2773,6 +2773,8 @@ in {
|
||||
|
||||
evohome-async = callPackage ../development/python-modules/evohome-async { };
|
||||
|
||||
evtx = callPackage ../development/python-modules/evtx { };
|
||||
|
||||
ewmh = callPackage ../development/python-modules/ewmh { };
|
||||
|
||||
exdown = callPackage ../development/python-modules/exdown { };
|
||||
|
Loading…
Reference in New Issue
Block a user