about summary refs log tree commit diff
path: root/pkgs/development/python-modules/evtx
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-05-10 23:45:14 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2022-05-10 23:45:14 +0200
commitcc5ce889fde52ffb9146e181d8c3a5bb5c94eac0 (patch)
tree366041a01154b04afb046823a2708dcc31825cb9 /pkgs/development/python-modules/evtx
parent683097028d530c784a7bffc883e682de1a7de3e3 (diff)
python310Packages.evtx: init at 0.7.3
Diffstat (limited to 'pkgs/development/python-modules/evtx')
-rw-r--r--pkgs/development/python-modules/evtx/default.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/evtx/default.nix b/pkgs/development/python-modules/evtx/default.nix
new file mode 100644
index 0000000000000..1348282f98d86
--- /dev/null
+++ b/pkgs/development/python-modules/evtx/default.nix
@@ -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 ];
+  };
+}