pyxel: 2.8.10 -> 2.9.7, fix build

This commit is contained in:
TomaSajt
2026-07-13 00:23:45 +02:00
parent 1c58bae88e
commit d2eb2d3d14

View File

@@ -11,36 +11,26 @@
python3Packages.buildPythonApplication (finalAttrs: {
pname = "pyxel";
version = "2.8.10";
version = "2.9.7";
pyproject = true;
src = fetchFromGitHub {
owner = "kitao";
repo = "pyxel";
tag = "v${finalAttrs.version}";
hash = "sha256-+SitYe2HFA6rwqk5lipcKFdBy69zdAhw3Q+Nb0iBx6s=";
hash = "sha256-k86VRX25yVNZvsnsWl0EYGd8njhx9yl6gkqI7mznjEs=";
};
patches = [
(fetchpatch {
name = "add-Cargo.lock.patch";
url = "https://github.com/kitao/pyxel/commit/821286112ea0c26141aa64b25aaa076611a2a91d.patch";
excludes = [ "CHANGELOG.md" ];
hash = "sha256-XtFdtmprPKrdjFOzEsNMJjc4PpNv6KDtWX2Hes2IKe0=";
})
];
cargoRoot = "crates";
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs)
src
patches
pname
version
cargoRoot
;
hash = "sha256-SGrQmGZeM2NcooDqCTO2HOXgLg7h+VvDIierDacqSFs=";
hash = "sha256-tpJSUdjdXwXK/n1nyMga5uTk7TAz/JLQVN0rSdbKxGk=";
};
buildAndTestSubdir = "python";
@@ -62,6 +52,11 @@ python3Packages.buildPythonApplication (finalAttrs: {
env.NIX_CFLAGS_COMPILE = "-I${lib.getDev SDL2}/include/SDL2";
preBuild = ''
# logic taken from Makefile
cp LICENSE README.md python/pyxel/
'';
# Tests want to use the display
doCheck = false;