Files
nixpkgs/pkgs/by-name/py/pychess/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

81 lines
1.5 KiB
Nix

{
lib,
python3Packages,
fetchFromGitHub,
pkg-config,
gobject-introspection,
wrapGAppsHook3,
gtk3,
gst_all_1,
writableTmpDirAsHomeHook,
gtksourceview4,
}:
python3Packages.buildPythonApplication rec {
pname = "pychess";
version = "1.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pychess";
repo = "pychess";
rev = version;
hash = "sha256-MSz5RiPpmlySjljhDlkvXtO6t3UO58zx+uGsV9R6F1A=";
};
nativeBuildInputs = [
pkg-config
gobject-introspection
wrapGAppsHook3
writableTmpDirAsHomeHook
];
buildInputs = [
gtk3
gst_all_1.gst-plugins-base
gtksourceview4
];
build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
pygobject3
pycairo
sqlalchemy
pexpect
psutil
websockets
ptyprocess
];
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
preBuild = ''
export PYTHONPATH=./lib:$PYTHONPATH
python pgn2ecodb.py
python create_theme_preview.py
'';
postInstall = ''
cp -r $out/share/pychess/* $out/lib/python*/
'';
# No tests available.
doCheck = false;
pythonImportsCheck = [ "pychess" ];
meta = {
description = "Advanced GTK chess client written in Python";
homepage = "https://pychess.github.io/";
mainProgram = "pychess";
license = lib.licenses.gpl3Only;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ lgbishop ];
};
}