1{ lib
2, buildPythonPackage
3, fetchPypi
4, numpy
5, scipy
6, pytestCheckHook
7, nose
8}:
9
10buildPythonPackage rec {
11 pname = "pykalman";
12 version = "0.9.5";
13 format = "setuptools";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-gWr0dyDZJKTGAW+nS54sjCEWWgjZFpPDIqF0Ho4H+zg=";
18 };
19
20 patches = [
21 # https://github.com/pykalman/pykalman/issues/83
22 ./fix-masked-arrays-not-supported.patch
23 # python 3.11 issues fix: https://github.com/pykalman/pykalman/pull/101
24 ./fix-p311-issues.patch
25 ];
26
27 propagatedBuildInputs = [
28 numpy
29 scipy
30 ];
31
32 nativeCheckInputs = [
33 pytestCheckHook
34 nose
35 ];
36 pythonImportsCheck = [ "pykalman" ];
37
38 meta = with lib; {
39 description = "An implementation of the Kalman Filter, Kalman Smoother, and EM algorithm in Python";
40 homepage = "https://github.com/pykalman/pykalman";
41 license = licenses.bsd2;
42 maintainers = with maintainers; [ mbalatsko ];
43 };
44}