about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/filterpy/default.nix
blob: 076a3a72b89f4ae2c3a9660ef9af28c2702d8d49 (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
{ stdenv
, buildPythonPackage
, fetchPypi
, numpy
, scipy
, matplotlib
, pytest
, isPy3k
}:

buildPythonPackage rec {
  version = "1.4.5";
  pname = "filterpy";
  disabled = !isPy3k;

  src = fetchPypi {
    inherit pname version;
    extension = "zip";
    sha256 = "4f2a4d39e4ea601b9ab42b2db08b5918a9538c168cff1c6895ae26646f3d73b1";
  };

  checkInputs = [ pytest ];
  propagatedBuildInputs = [ numpy scipy matplotlib ];

  # single test fails (even on master branch of repository)
  # project does not use CI
  checkPhase = ''
    pytest --ignore=filterpy/common/tests/test_discretization.py
  '';

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