pysolfc: 2.16.0 -> 2.20.1

This commit is contained in:
Anomalocaridid 2023-06-28 20:45:59 -04:00
parent aadd1db324
commit eda43a206a

View file

@ -1,25 +1,42 @@
{ lib, fetchzip, buildPythonApplication, python3Packages
, desktop-file-utils, freecell-solver }:
{ lib
, fetchzip
, buildPythonApplication
, python3Packages
, desktop-file-utils
, freecell-solver
}:
buildPythonApplication rec {
pname = "PySolFC";
version = "2.16.0";
version = "2.20.1";
src = fetchzip {
url = "https://versaweb.dl.sourceforge.net/project/pysolfc/PySolFC/PySolFC-${version}/PySolFC-${version}.tar.xz";
sha256 = "sha256-kklB16IrDicxqMee1kbxtoqgwcSrMjCV4HP6GtnZxo8=";
hash = "sha256-mEnsq8Su0ses+nqoSFC+Wr0MHY7aTDMbtDV8toYVNPY=";
};
cardsets = fetchzip {
url = "https://versaweb.dl.sourceforge.net/project/pysolfc/PySolFC-Cardsets/PySolFC-Cardsets-2.1/PySolFC-Cardsets-2.1.tar.bz2";
sha256 = "sha256-0ji6jY7zJFaaaJdInaULKUou+u934RMzYjxVDGVHbE0=";
url = "https://versaweb.dl.sourceforge.net/project/pysolfc/PySolFC-Cardsets/PySolFC-Cardsets-2.2/PySolFC-Cardsets-2.2.tar.bz2";
hash = "sha256-mWJ0l9rvn9KeZ9rCWy7VjngJzJtSQSmG8zGcYFE4yM0=";
};
music = fetchzip {
url = "https://versaweb.dl.sourceforge.net/project/pysolfc/PySol-Music/PySol-Music-4.50/pysol-music-4.50.tar.xz";
hash = "sha256-sOl5U98aIorrQHJRy34s0HHaSW8hMUE7q84FMQAj5Yg=";
};
propagatedBuildInputs = with python3Packages; [
tkinter six random2 configobj
pysol-cards attrs pycotap
tkinter
six
random2
configobj
pysol-cards
attrs
pycotap
# optional :
pygame freecell-solver pillow
pygame
freecell-solver
pillow
];
patches = [
@ -35,6 +52,7 @@ buildPythonApplication rec {
postInstall = ''
mkdir $out/share/PySolFC/cardsets
cp -r $cardsets/* $out/share/PySolFC/cardsets
cp -r $music/data/music $out/share/PySolFC
'';
# No tests in archive