1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 numpy, 6 scipy, 7 pytestCheckHook, 8 nose, 9}: 10 11buildPythonPackage rec { 12 pname = "pykalman"; 13 version = "0.9.7"; 14 format = "setuptools"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-E1d5IAOTxrNwIhmQ9zFnQEcvVBNG6SEdEWMOLC2PuKA="; 19 }; 20 21 patches = [ 22 # https://github.com/pykalman/pykalman/issues/83 23 ./fix-masked-arrays-not-supported.patch 24 # python 3.11 issues fix: https://github.com/pykalman/pykalman/pull/101 25 ./fix-p311-issues.patch 26 ]; 27 28 propagatedBuildInputs = [ 29 numpy 30 scipy 31 ]; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 nose 36 ]; 37 pythonImportsCheck = [ "pykalman" ]; 38 39 meta = with lib; { 40 description = "An implementation of the Kalman Filter, Kalman Smoother, and EM algorithm in Python"; 41 homepage = "https://github.com/pykalman/pykalman"; 42 license = licenses.bsd2; 43 maintainers = with maintainers; [ mbalatsko ]; 44 }; 45}