Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 50 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ stdenv, lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, pythonOlder, rustPlatform, libiconv,}:
buildPythonPackage rec { pname = "evtx"; version = "0.8.4"; format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "omerbenamram"; repo = "pyevtx-rs"; rev = "refs/tags/${version}"; hash = "sha256-s94KCUIJplrkMvFsFxPokTucB5TwVYD1xxcoJyvk5NU="; };
cargoDeps = rustPlatform.fetchCargoTarball { inherit src; name = "${pname}-${version}"; hash = "sha256-i16FNFbYrF2BONahLP7APMi9RPaLGmbnBH4hBPnHWzg="; };
nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ];
buildInputs = lib.optionals stdenv.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 ]; };}