mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-05 20:19:16 +03:00
Merge pull request #323445 from Anomalocaridid/pysolfc-3.0.0
pysolfc: 2.21.0 -> 3.0.0
This commit is contained in:
commit
cdf6bef79e
@ -1,31 +1,57 @@
|
|||||||
{ lib
|
{
|
||||||
, fetchzip
|
lib,
|
||||||
, buildPythonApplication
|
stdenv,
|
||||||
, python3Packages
|
fetchzip,
|
||||||
, desktop-file-utils
|
python311Packages,
|
||||||
, freecell-solver
|
desktop-file-utils,
|
||||||
|
freecell-solver,
|
||||||
|
black-hole-solver,
|
||||||
|
_experimental-update-script-combinators,
|
||||||
|
gitUpdater,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonApplication rec {
|
python311Packages.buildPythonApplication rec {
|
||||||
pname = "pysolfc";
|
pname = "pysolfc";
|
||||||
version = "2.21.0";
|
version = "3.0.0";
|
||||||
|
|
||||||
src = fetchzip {
|
src = fetchzip {
|
||||||
url = "mirror://sourceforge/pysolfc/PySolFC-${version}.tar.xz";
|
url = "mirror://sourceforge/pysolfc/PySolFC-${version}.tar.xz";
|
||||||
hash = "sha256-Deye7KML5G6RZkth2veVgPOWZI8gnusEvszlrPTAhag=";
|
hash = "sha256-LPOm83K4bdzmmQskmAnSyYpz+5y9ktQAhYCkXpODYKI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cardsets = fetchzip {
|
cardsets = stdenv.mkDerivation rec {
|
||||||
url = "mirror://sourceforge/pysolfc/PySolFC-Cardsets-2.2.tar.bz2";
|
pname = "pysol-cardsets";
|
||||||
hash = "sha256-mWJ0l9rvn9KeZ9rCWy7VjngJzJtSQSmG8zGcYFE4yM0=";
|
version = "3.0";
|
||||||
|
|
||||||
|
src = fetchzip {
|
||||||
|
url = "mirror://sourceforge/pysolfc/PySolFC-Cardsets-${version}.tar.bz2";
|
||||||
|
hash = "sha256-UP0dQjoZJg+iSKVOrWbkLj1KCzMWws8ZBVSBLly1a/Y=";
|
||||||
|
};
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
cp -r $src $out
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
music = fetchzip {
|
music = stdenv.mkDerivation rec {
|
||||||
url = "mirror://sourceforge/pysolfc/pysol-music-4.50.tar.xz";
|
pname = "pysol-music";
|
||||||
hash = "sha256-sOl5U98aIorrQHJRy34s0HHaSW8hMUE7q84FMQAj5Yg=";
|
version = "4.50";
|
||||||
|
|
||||||
|
src = fetchzip {
|
||||||
|
url = "mirror://sourceforge/pysolfc/pysol-music-${version}.tar.xz";
|
||||||
|
hash = "sha256-sOl5U98aIorrQHJRy34s0HHaSW8hMUE7q84FMQAj5Yg=";
|
||||||
|
};
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
cp -r $src $out
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [
|
propagatedBuildInputs = with python311Packages; [
|
||||||
tkinter
|
tkinter
|
||||||
six
|
six
|
||||||
random2
|
random2
|
||||||
@ -36,12 +62,11 @@ buildPythonApplication rec {
|
|||||||
# optional :
|
# optional :
|
||||||
pygame
|
pygame
|
||||||
freecell-solver
|
freecell-solver
|
||||||
|
black-hole-solver
|
||||||
pillow
|
pillow
|
||||||
];
|
];
|
||||||
|
|
||||||
patches = [
|
patches = [ ./pysolfc-datadir.patch ];
|
||||||
./pysolfc-datadir.patch
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = [ desktop-file-utils ];
|
nativeBuildInputs = [ desktop-file-utils ];
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -58,6 +83,24 @@ buildPythonApplication rec {
|
|||||||
# No tests in archive
|
# No tests in archive
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
passthru.updateScript = _experimental-update-script-combinators.sequence (
|
||||||
|
# Needed in order to work around requirement that only one updater with features enabled is in sequence
|
||||||
|
map (updater: updater.command) [
|
||||||
|
(gitUpdater {
|
||||||
|
url = "https://github.com/shlomif/PySolFC.git";
|
||||||
|
rev-prefix = "pysolfc-";
|
||||||
|
})
|
||||||
|
(gitUpdater {
|
||||||
|
url = "https://github.com/shlomif/PySolFC-CardSets.git";
|
||||||
|
attrPath = "pysolfc.cardsets";
|
||||||
|
})
|
||||||
|
(gitUpdater {
|
||||||
|
url = "https://github.com/shlomif/pysol-music.git";
|
||||||
|
attrPath = "pysolfc.music";
|
||||||
|
})
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A collection of more than 1000 solitaire card games";
|
description = "A collection of more than 1000 solitaire card games";
|
||||||
mainProgram = "pysol.py";
|
mainProgram = "pysol.py";
|
||||||
|
Loading…
Reference in New Issue
Block a user