1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 numpy,
6 scipy,
7 pytestCheckHook,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "pykalman";
13 version = "0.9.7";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "pykalman";
18 repo = "pykalman";
19 rev = "aaf8c8574b0474b6f41b7b135a9a7f2dfbd0e86c"; # no tags
20 hash = "sha256-++YqxGMsFGv5OxicDFO9Xz89e62NG8X+6oR6M9ePUcg=";
21 };
22
23 build-system = [ setuptools ];
24
25 propagatedBuildInputs = [
26 numpy
27 scipy
28 ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31 pythonImportsCheck = [ "pykalman" ];
32
33 meta = with lib; {
34 description = "Implementation of the Kalman Filter, Kalman Smoother, and EM algorithm in Python";
35 homepage = "https://github.com/pykalman/pykalman";
36 license = licenses.bsd2;
37 maintainers = with maintainers; [ mbalatsko ];
38 };
39}