From 695c4bc345ba717c0adb61fc59989293f33809f4 Mon Sep 17 00:00:00 2001 From: Patrick Norton Date: Sun, 9 Nov 2025 14:59:17 -0500 Subject: [PATCH] gnu: Add python-freecell-solver. * gnu/packages/python-xyz.scm (python-freecell-solver): New variable. Change-Id: I2c1ddea7f5889960bcac2d551739e4e5dce34a1f Signed-off-by: Liliana Marie Prikler --- gnu/packages/python-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index b69da274321a3fde98699a1a40b467b7ee23cb45..497bcfb2b52e061374631765f8e499365cd55a80 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -21653,6 +21653,42 @@ objects, patterned after the Mocha library for Ruby.") some PySol games.") (license license:expat))) +(define-public python-freecell-solver + (package + (name "python-freecell-solver") + (version "0.6.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "freecell_solver" version)) + (sha256 + (base32 "0cq77dmq21laqk8fhl61m33lbckymzk312r263x2mv93mccf8jrm")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key test-flags tests? #:allow-other-keys) + (when tests? + (apply invoke + "python" + "-m" + "unittest" + "discover" + "tests" + test-flags))))))) + (propagated-inputs (list python-cffi)) + (native-inputs (list python-setuptools python-wheel)) + (home-page "https://pypi.org/project/freecell-solver/") + (synopsis "Freecell Solver bindings") + (description + "This package provides Python bindings for the freecell-solver +package. Freecell Solver is a program that automatically solves layouts of +Freecell and similar variants of Card Solitaire such as Eight Off, Forecell, +and Seahaven Towers, as well as Simple Simon boards.") + (license license:expat))) + (define-public python-inflect (package (name "python-inflect")