My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/evtx/default.nix

48 lines
946 B

{ 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 ];
};
}