summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/filterpy/default.nix
blob: 11c103e5a0406c5640e38d8960341a38661c2795 (plain)
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
45
46
47
48
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  numpy,
  scipy,
  matplotlib,
  pytestCheckHook,
  isPy3k,
}:

buildPythonPackage {
  pname = "filterpy";
  version = "1.4.5-unstable-2022-08-23";
  pyproject = true;

  disabled = !isPy3k;

  src = fetchFromGitHub {
    owner = "rlabbe";
    repo = "filterpy";
    rev = "3b51149ebcff0401ff1e10bf08ffca7b6bbc4a33";
    hash = "sha256-KuuVu0tqrmQuNKYmDmdy+TU6BnnhDxh4G8n9BGzjGag=";
  };

  build-system = [ setuptools ];

  dependencies = [
    numpy
    scipy
    matplotlib
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  disabledTests = [
    # ValueError: Unable to avoid copy while creating an array as requested."
    "test_multivariate_gaussian"
  ];

  meta = {
    homepage = "https://github.com/rlabbe/filterpy";
    description = "Kalman filtering and optimal estimation library";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}