blob: a31b963462a391d014b73bdade2c4b1ef10a4c94 (
plain) (
blame)
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
47
48
49
50
|
{
stdenv,
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
rustPlatform,
libiconv,
}:
buildPythonPackage rec {
pname = "evtx";
version = "0.8.5";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "omerbenamram";
repo = "pyevtx-rs";
rev = "refs/tags/${version}";
hash = "sha256-wo6CeHlEBbu3klzzC4dUbjSfu7XwLo/cmtmZsVIKgS8=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-qBpc3PwvAceOMuRH4vrgURCsvKYhG2Id62n7sxW5AAg=";
};
nativeBuildInputs = with rustPlatform; [
cargoSetupHook
maturinBuildHook
];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "evtx" ];
meta = with lib; {
description = "Bindings for evtx";
homepage = "https://github.com/omerbenamram/pyevtx-rs";
changelog = "https://github.com/omerbenamram/pyevtx-rs/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
|