From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: 59607@debbugs.gnu.org
Subject: [bug#59607] [PATCH 5/8] gnu: Add python-filterpy.
Date: Fri, 25 Nov 2022 21:37:58 +0100 [thread overview]
Message-ID: <7657246e20fc5dede55b714864d8eae90ec73dfd.camel@gmail.com> (raw)
In-Reply-To: <a9bdd1f5c70f0879615809184653358d7f07def3.camel@gmail.com>
* gnu/packages/python-science.scm (python-filterpy): New variable.
---
gnu/packages/python-science.scm | 50 +++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 52fe1460bb..d69e43be4e 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -634,6 +634,56 @@ (define-public python-fbpca
analysis} (PCA), SVD, and eigendecompositions via randomized methods")
(license license:bsd-3)))
+(define-public python-filterpy
+ (package
+ (name "python-filterpy")
+ (version "1.4.5")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rlabbe/filterpy")
+ (commit version)))
+ (sha256
+ (base32
+ "1i7v7jfi0ysc2rz9fkxyrmdbh4a1ahcn6vgjajj0zs6wla3jnmxm"))))
+ (build-system python-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'mark-failing-tests
+ (lambda _
+ (substitute* "filterpy/kalman/tests/test_kf.py"
+ (("from __future__ import .*" all)
+ (string-append all "\nimport pytest\n"))
+ (("def test_(noisy_1d|steadystate)" all)
+ (string-append "@pytest.mark.xfail()\n"
+ all)))
+ (substitute* "filterpy/kalman/tests/test_fm.py"
+ (("from pytest import .*" all)
+ (string-append all "\nimport pytest\n"))
+ (("def test_noisy_1d" all)
+ (string-append "@pytest.mark.xfail()\n"
+ all)))
+ (substitute* "filterpy/stats/tests/test_stats.py"
+ (("from __future__ import .*" all)
+ (string-append all "\nimport pytest\n"))
+ (("def test_mahalanobis" all)
+ (string-append "@pytest.mark.xfail()\n"
+ all)))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv")))))))
+ (propagated-inputs (list python-numpy python-scipy))
+ (native-inputs (list python-pytest))
+ (home-page "https://filterpy.readthedocs.io/")
+ (synopsis "Kalman and Bayesian filters")
+ (description
+ "This package provides implementations of various filters, such as the
+Kalman filter, its extended and unscented variants, recursive least squares,
+and others.")
+ (license license:expat)))
+
(define-public python-geosketch
(package
(name "python-geosketch")
--
2.38.1
next prev parent reply other threads:[~2022-11-26 12:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-26 11:47 [bug#59607] [PATCH 0/8] Upscale your anime pictures, now with 99% less malware Liliana Marie Prikler
2022-11-19 23:14 ` [bug#59607] [PATCH 1/8] gnu: Add ncnn Liliana Marie Prikler
2022-11-20 1:16 ` [bug#59607] [PATCH 2/8] gnu: Add real-esrgan-ncnn Liliana Marie Prikler
2022-11-20 9:10 ` [bug#59607] [PATCH 3/8] gnu: Add python-addict Liliana Marie Prikler
2022-11-20 16:25 ` [bug#59607] [PATCH 4/8] gnu: Add python-basicsr Liliana Marie Prikler
2022-11-22 20:55 ` [bug#59607] [PATCH 8/8] gnu: Add python-real-esrgan Liliana Marie Prikler
2022-11-25 20:37 ` Liliana Marie Prikler [this message]
2022-11-25 22:31 ` [bug#59607] [PATCH 6/8] gnu: Add python-facexlib Liliana Marie Prikler
2022-11-26 10:46 ` [bug#59607] [PATCH 7/8] gnu: Add python-gfpgan Liliana Marie Prikler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7657246e20fc5dede55b714864d8eae90ec73dfd.camel@gmail.com \
--to=liliana.prikler@gmail.com \
--cc=59607@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).