nixpkgs/pkgs/games/gscrabble/default.nix
Martin Weinelt ae4a1a485a
treewide: add explicit format attribute for Python packages
If a Python package does not come with either `format` or `pyproject` we
consider it a setuptools build, that calls `setup.py` directly, which is
deprecated.

This change, as a first step, migrates a large chunk of these packages to
set setuptools as their explicit format

This is so we can unify the problem space for the next step of the
migration.
2025-07-02 05:56:47 +02:00

65 lines
1.3 KiB
Nix

{
lib,
buildPythonApplication,
fetchFromGitHub,
gtk3,
wrapGAppsHook3,
gst_all_1,
gobject-introspection,
gst-python,
pygobject3,
adwaita-icon-theme,
}:
buildPythonApplication {
pname = "gscrabble";
version = "unstable-2020-04-21";
format = "setuptools";
src = fetchFromGitHub {
owner = "RaaH";
repo = "gscrabble";
rev = "aba37f062a6b183dcc084c453f395af1dc437ec8";
sha256 = "sha256-rYpPHgOlPRnlA+Nkvo/J+/8/vl24/Ssk55fTq9oNCz4=";
};
doCheck = false;
nativeBuildInputs = [
wrapGAppsHook3
gobject-introspection
];
buildInputs = with gst_all_1; [
gst-plugins-base
gst-plugins-good
gst-plugins-ugly
gst-plugins-bad
adwaita-icon-theme
gtk3
];
propagatedBuildInputs = [
gst-python
pygobject3
];
preFixup = ''
gappsWrapperArgs+=(
--prefix PYTHONPATH : "$out/share/GScrabble/modules"
)
'';
meta = with lib; {
# Fails to build, probably incompatible with latest Python
# error: Multiple top-level packages discovered in a flat-layout
# https://github.com/RaaH/gscrabble/issues/13
broken = true;
description = "Golden Scrabble crossword puzzle game";
homepage = "https://github.com/RaaH/gscrabble/";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ onny ];
};
}