9 python3.pkgs.buildPythonApplication rec {
14 disabled = python3.pythonOlder "3.7";
16 src = fetchFromGitHub {
20 hash = "sha256-6S+fl6J1JN785HxG8i0oYlwoTsqa3Gm1DpCd4swUPZ8=";
23 patches = [ ./never-bundle-sdl2.patch ];
26 cp ${./Cargo.lock} rust/Cargo.lock
31 cargoDeps = rustPlatform.importCargoLock {
32 # generated by running `cargo generate-lockfile` in the `rust` directory
33 lockFile = ./Cargo.lock;
36 buildAndTestSubdir = "python";
38 nativeBuildInputs = with rustPlatform; [
44 buildInputs = [ SDL2 ];
46 env.NIX_CFLAGS_COMPILE = "-I${lib.getDev SDL2}/include/SDL2";
48 # Tests want to use the display
51 pythonImportsCheck = [
57 changelog = "https://github.com/kitao/pyxel/tree/${src.rev}/CHANGELOG.md";
58 description = "Retro game engine for Python";
59 homepage = "https://github.com/kitao/pyxel";
60 license = lib.licenses.mit;
61 mainProgram = "pyxel";
62 maintainers = with lib.maintainers; [ tomasajt ];
63 platforms = lib.platforms.linux ++ lib.platforms.darwin;