2022-04-27 09:35:20 +00:00
|
|
|
{ lib, fetchurl, buildPythonPackage
|
|
|
|
, numpy, scikit-learn, pybind11, setuptools-scm, cython
|
|
|
|
, pytestCheckHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hmmlearn";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "0.2.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/h/hmmlearn/${pname}-${version}.tar.gz";
|
2022-04-15 01:41:22 +00:00
|
|
|
sha256 = "sha256-a0snIPJ6912pNnq02Q3LAPONozFo322Rf57F3mZw9uE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
buildInputs = [ setuptools-scm cython pybind11 ];
|
2021-05-20 23:08:51 +00:00
|
|
|
propagatedBuildInputs = [ numpy scikit-learn ];
|
2022-04-27 09:35:20 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
pythonImportsCheck = [ "hmmlearn" ];
|
|
|
|
pytestFlagsArray = [ "--pyargs" "hmmlearn" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|