2021-06-04 09:07:49 +00:00
|
|
|
{ lib, fetchurl, buildPythonPackage, numpy, scikit-learn, setuptools-scm, cython, pytest }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hmmlearn";
|
2021-08-27 14:25:00 +00:00
|
|
|
version = "0.2.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/h/hmmlearn/${pname}-${version}.tar.gz";
|
2021-08-27 14:25:00 +00:00
|
|
|
sha256 = "2a289cf28b31be59fa8ba5d3253d4a2a992401d45a8cdc221ae484fbf390c0d7";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
buildInputs = [ setuptools-scm cython ];
|
2021-05-20 23:08:51 +00:00
|
|
|
propagatedBuildInputs = [ numpy scikit-learn ];
|
2020-04-24 23:36:52 +00:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2020-12-25 13:55:36 +00:00
|
|
|
pytest --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 ];
|
|
|
|
};
|
|
|
|
}
|