diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2022-05-10 23:45:14 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2022-05-10 23:45:14 +0200 |
commit | cc5ce889fde52ffb9146e181d8c3a5bb5c94eac0 (patch) | |
tree | 366041a01154b04afb046823a2708dcc31825cb9 /pkgs/development/python-modules/evtx | |
parent | 683097028d530c784a7bffc883e682de1a7de3e3 (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.nix | 48 |
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 ]; + }; +} |