mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
ca88a5ffe2
Co-authored-by: Aleksana <alexander.huang.y@gmail.com>
75 lines
1.3 KiB
Nix
75 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
gobject-introspection,
|
|
wrapGAppsHook3,
|
|
gtk3,
|
|
gst_all_1,
|
|
gtksourceview,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "pychess";
|
|
version = "1.0.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pychess";
|
|
repo = "pychess";
|
|
rev = "${version}";
|
|
hash = "sha256-hxc+vYvCeiM0+oOu1peI9qkZg5PeIsDMCiydJQAuzOk=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
gobject-introspection
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
gtk3
|
|
gst_all_1.gst-plugins-base
|
|
gtksourceview
|
|
];
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
pygobject3
|
|
pycairo
|
|
sqlalchemy
|
|
pexpect
|
|
psutil
|
|
websockets
|
|
ptyprocess
|
|
];
|
|
|
|
dontWrapGApps = true;
|
|
|
|
preFixup = ''
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
'';
|
|
|
|
preBuild = ''
|
|
export HOME=$(mktemp -d)
|
|
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;
|
|
|
|
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 ];
|
|
};
|
|
}
|