blob: 8ef68cf010c4da255ffca52ef602aa6fdbd1499e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{
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 ];
};
}
|