depot/third_party/nixpkgs/pkgs/development/python-modules/pykalman/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

45 lines
944 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
numpy,
scipy,
pytestCheckHook,
nose,
}:
buildPythonPackage rec {
pname = "pykalman";
version = "0.9.7";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-E1d5IAOTxrNwIhmQ9zFnQEcvVBNG6SEdEWMOLC2PuKA=";
};
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 = "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 ];
};
}