@@ -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")