Subject: [PATCH 02/18] gnu: Add python-fann2.

From: phodina <[email-masked]>
Date: Sat, 18 Sep 2021 17:04:39 +0000

* gnu/packages/python-xyz.scm (python-fann2): New variable.

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7add339e90..6aa0f3236a 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -174,6 +174,7 @@
   #:use-module (gnu packages maths)
   #:use-module (gnu packages monitoring)
   #:use-module (gnu packages multiprecision)
+  #:use-module (gnu packages machine-learning)
   #:use-module (gnu packages networking)
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages openstack)
@@ -17885,6 +17886,28 @@ current test, while only declaring the test-specific fields")
 (define-public python2-factory-boy
   (package-with-python2 python-factory-boy))

+(define-public python-fann2
+  (package
+    (name "python-fann2")
+    (version "1.0.7")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "fann2" version))
+       (sha256
+        (base32
+         "17zv6hbq26qg9jmsshx3xnnnv203fr4cyjg4v3rgq38a5i5agv2k"))))
+    (build-system python-build-system)
+    (native-inputs `(("swig" ,swig)))
+    (propagated-inputs `(("fann" ,fann)))
+    (home-page
+     "https://github.com/FutureLinkCorporation/fann2")
+    (synopsis
+     "Fast Artificial Neural Network Library (FANN) Python bindings")
+    (description
+     "Fast Artificial Neural Network Library (FANN) Python bindings.")
+    (license license:lgpl2.1)))
+
 (define-public python-translate-toolkit
   (package
     (name "python-translate-toolkit")
--
2.32.0