about summary refs log tree commit diff
path: root/pkgs/development/python-modules/skytemple-ssb-emulator/default.nix
blob: 39c034e3d87a2d5a2401df632a1b0f5697f565f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{ alsa-lib
, buildPythonPackage
, cargo
, fetchPypi
, glib
, lib
, libpcap
, meson
, ninja
, openal
, pkg-config
, range-typed-integers
, rustc
, rustPlatform
, SDL2
, setuptools
, setuptools-rust
, soundtouch
, zlib
}:
buildPythonPackage rec {
  pname = "skytemple-ssb-emulator";
  version = "1.6.4";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-qGRfX7Bwr19KJnIdhwuSVBZzXxMJyEgyBuy91aLhEj4=";
  };

  cargoDeps = rustPlatform.importCargoLock {
    lockFile = ./Cargo.lock;
    outputHashes = {
      "skytemple_rust-1.6.4" = "sha256-t7P3F1zes7bgDu2JGqb5DgxlDCiztWtmViy4QY9CzT0=";
    };
  };

  buildInputs = [
    alsa-lib
    glib
    libpcap
    SDL2
    soundtouch
    zlib
  ];

  nativeBuildInputs = [
    cargo
    meson
    ninja
    openal
    pkg-config
    rustc
    rustPlatform.cargoSetupHook
    setuptools
    setuptools-rust
  ];

  propagatedBuildInputs = [
    range-typed-integers
  ];

  hardeningDisable = [
    "format"
  ];

  doCheck = false; # there are no tests
  pythonImportsCheck = [
    "skytemple_ssb_emulator"
  ];

  meta = with lib; {
    description = "SkyTemple Script Engine Debugger Emulator Backend";
    homepage = "https://github.com/SkyTemple/skytemple-ssb-emulator";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ marius851000 ];
  };
}