depot/third_party/nixpkgs/pkgs/development/python-modules/hmmlearn/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

55 lines
905 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
, numpy
, scikit-learn
, pybind11
, setuptools-scm
, cython
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "hmmlearn";
version = "0.3.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-0TqR6jaV34gUZePTYTLX7vToTUg/S6U4pLRuJLXqEA8=";
};
buildInputs = [
setuptools-scm
cython
pybind11
];
propagatedBuildInputs = [
numpy
scikit-learn
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"hmmlearn"
];
pytestFlagsArray = [
"--pyargs"
"hmmlearn"
];
meta = with lib; {
description = "Hidden Markov Models in Python with scikit-learn like API";
homepage = "https://github.com/hmmlearn/hmmlearn";
license = licenses.bsd3;
maintainers = with maintainers; [ abbradar ];
};
}