nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 46 lines 1.0 kB view raw
1{ 2 stdenv, 3 lib, 4 buildPythonPackage, 5 fetchFromGitHub, 6 pytestCheckHook, 7 rustPlatform, 8 libiconv, 9}: 10 11buildPythonPackage rec { 12 pname = "evtx"; 13 version = "0.11.0"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "omerbenamram"; 18 repo = "pyevtx-rs"; 19 tag = version; 20 hash = "sha256-06pRNGEUmk2llD5CPbgHiJSHTR8tm/nv0eJL1UKHPEM="; 21 }; 22 23 cargoDeps = rustPlatform.fetchCargoVendor { 24 inherit pname version src; 25 hash = "sha256-POEqKRJ/g0bWYs89yrVyD4RFhc7iq+5J67P0rowB2/g="; 26 }; 27 28 nativeBuildInputs = with rustPlatform; [ 29 cargoSetupHook 30 maturinBuildHook 31 ]; 32 33 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ]; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 37 pythonImportsCheck = [ "evtx" ]; 38 39 meta = { 40 description = "Bindings for evtx"; 41 homepage = "https://github.com/omerbenamram/pyevtx-rs"; 42 changelog = "https://github.com/omerbenamram/pyevtx-rs/releases/tag/${src.tag}"; 43 license = lib.licenses.mit; 44 maintainers = with lib.maintainers; [ fab ]; 45 }; 46}