evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / evtx / default.nix
bloba31b963462a391d014b73bdade2c4b1ef10a4c94
2   stdenv,
3   lib,
4   buildPythonPackage,
5   fetchFromGitHub,
6   pytestCheckHook,
7   pythonOlder,
8   rustPlatform,
9   libiconv,
12 buildPythonPackage rec {
13   pname = "evtx";
14   version = "0.8.5";
15   format = "pyproject";
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "omerbenamram";
21     repo = "pyevtx-rs";
22     rev = "refs/tags/${version}";
23     hash = "sha256-wo6CeHlEBbu3klzzC4dUbjSfu7XwLo/cmtmZsVIKgS8=";
24   };
26   cargoDeps = rustPlatform.fetchCargoTarball {
27     inherit src;
28     name = "${pname}-${version}";
29     hash = "sha256-qBpc3PwvAceOMuRH4vrgURCsvKYhG2Id62n7sxW5AAg=";
30   };
32   nativeBuildInputs = with rustPlatform; [
33     cargoSetupHook
34     maturinBuildHook
35   ];
37   buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
39   nativeCheckInputs = [ pytestCheckHook ];
41   pythonImportsCheck = [ "evtx" ];
43   meta = with lib; {
44     description = "Bindings for evtx";
45     homepage = "https://github.com/omerbenamram/pyevtx-rs";
46     changelog = "https://github.com/omerbenamram/pyevtx-rs/releases/tag/${version}";
47     license = with licenses; [ mit ];
48     maintainers = with maintainers; [ fab ];
49   };