From f5425a307ca32542b92f79dad584e8c81b10b8bb Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Thu, 27 May 2021 16:49:27 -0300 Subject: [PATCH 5/6] gnu: Add python-pyke. * gnu/packages/python-xyz.scm (python-pyke): New variable. --- gnu/packages/python-xyz.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index b102e1c570..3925a96b77 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -5918,6 +5918,39 @@ operators such as union, intersection, and difference.") search in Python.") (license license:lgpl3+))) +(define-public python-pyke + (package + (name "python-pyke") + (version "1.1.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "scitools-pyke" version)) + (sha256 + (base32 "0q7nxd0gw135922ck155w2nj2vf47k7cgzdqipxlyrgq6q3lkinl")))) + (build-system python-build-system) + ;; FIXME: two tests are failing with: + ;; "AttributeError: 'fc_tests' object has no attribute 'engine'.". + (arguments + `(#:tests? #f)) + (home-page "https://sourceforge.net/projects/pyke/") + (synopsis "Python Knowledge Engine") + (description "Pyke is a Python Knowledge Engine and automatic Python +program generator. Both forward-chaining and backward-chaining rules (which +may include Python code) are compiled into Python. It can also automatically +assemble Python programs out of Python functions which are attached to +backward-chaining rules. + +Features: + +@itemize +@item Automatic programming: generates Python programs. +@item Forward and backward chaining. +@item Multiple knowledge engines and rule bases. +@item Rule-based inheritance. +@end itemize") + (license license:expat))) + (define-public python-wurlitzer (package (name "python-wurlitzer") -- 2.32.0