1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, setuptools 5}: 6 7#This package is auto-generated. It could totally be possible to generate it from upstream, but seems unecessary 8buildPythonPackage rec { 9 pname = "pmdsky-debug-py"; 10 version = "4.0.0"; 11 # SkyTemple specifically require this version. This is used when patching the binary, 12 # and risk to be a bit problematic if using the latest version, given it doesn’t follow semver. 13 14 src = fetchFromGitHub { 15 owner = "SkyTemple"; 16 repo = pname; 17 rev = version; 18 sha256 = "sha256-iRiUZoyWAkFGPvRyQRWvI0210Vk2jPS0PSCCCns5yJI="; 19 }; 20 21 prePatch = "cd src"; 22 23 format = "pyproject"; 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}