about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pmdsky-debug-py/default.nix
blob: 8a8b89e604552e120a707df28285b9911950fc90 (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
}:

#This package is auto-generated. It could totally be possible to generate it from upstream, but seems unecessary
buildPythonPackage rec {
  pname = "pmdsky-debug-py";
  version = "8.0.4";
  pyproject = true;
  # SkyTemple specifically require this version. This is used when patching the binary,
  # and risk to be a bit problematic if using the latest version, given it doesn’t follow semver.

  src = fetchFromGitHub {
    owner = "SkyTemple";
    repo = pname;
    rev = version;
    sha256 = "sha256-D81vXhYGxwvy26PvicniCLiS58LmrSP9ppzXKRzQSJc=";
  };

  prePatch = "cd src";

  nativeBuildInputs = [ setuptools ];

  meta = with lib; {
    description = "Autogenerated and statically check-able pmdsky-debug symbol definitions for Python";
    homepage = "https://github.com/SkyTemple/pmdsky-debug-py";
    license = licenses.mit;
    maintainers = with maintainers; [ marius851000 xfix ];
  };
}