summary refs log tree commit diff
path: root/pkgs/development/python-modules/pykalman/default.nix
blob: 7073e9382d3de85fb5e1efab5b2346a32645a143 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ lib
, buildPythonPackage
, fetchPypi
, numpy
, scipy
, pytestCheckHook
, nose
}:

buildPythonPackage rec {
  pname = "pykalman";
  version = "0.9.5";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-gWr0dyDZJKTGAW+nS54sjCEWWgjZFpPDIqF0Ho4H+zg=";
  };

  patches = [
    # https://github.com/pykalman/pykalman/issues/83
    ./fix-masked-arrays-not-supported.patch
    # python 3.11 issues fix: https://github.com/pykalman/pykalman/pull/101
    ./fix-p311-issues.patch
  ];

  propagatedBuildInputs = [
    numpy
    scipy
  ];

  nativeCheckInputs = [
    pytestCheckHook
    nose
  ];
  pythonImportsCheck = [ "pykalman" ];

  meta = with lib; {
    description = "An implementation of the Kalman Filter, Kalman Smoother, and EM algorithm in Python";
    homepage = "https://github.com/pykalman/pykalman";
    license = licenses.bsd2;
    maintainers = with maintainers; [ mbalatsko ];
  };
}