1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6}:
7
8#This python library is auto-generated. It should be possible to rebuild it from upstream, but seems unnecessary
9buildPythonPackage rec {
10 pname = "pmdsky-debug-py";
11 version = "10.0.48";
12 pyproject = true;
13 # SkyTemple specifically require this version. This is used when patching the binary,
14 # and risk to be a bit problematic if using the latest version, given it doesn’t follow semver.
15
16 src = fetchFromGitHub {
17 owner = "SkyTemple";
18 repo = "pmdsky-debug-py";
19 rev = version;
20 sha256 = "sha256-JTvLyYUwOEp1O0rtO313VIT6AYOqXWVFUleTrb6BN6Q=";
21 };
22
23 prePatch = "cd src";
24
25 nativeBuildInputs = [ setuptools ];
26
27 meta = with lib; {
28 description = "Autogenerated and statically check-able pmdsky-debug symbol definitions for Python";
29 homepage = "https://github.com/SkyTemple/pmdsky-debug-py";
30 license = licenses.mit;
31 maintainers = with maintainers; [ marius851000 ];
32 };
33}