1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6}: 7 8#This package is auto-generated. It could totally be possible to generate it from upstream, but seems unnecessary 9buildPythonPackage rec { 10 pname = "pmdsky-debug-py"; 11 version = "10.0.21"; 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 = pname; 19 rev = version; 20 sha256 = "sha256-uhLmEViiJ5+2Aw9MJP8GL7nhk8lMPcRZRB8WTDFXe+s="; 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 = [ ]; 32 }; 33}