2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchurl, buildPythonPackage, numpy, scikitlearn, setuptools_scm, cython, pytest }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hmmlearn";
|
2021-02-13 14:23:35 +00:00
|
|
|
version = "0.2.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/h/hmmlearn/${pname}-${version}.tar.gz";
|
2021-02-13 14:23:35 +00:00
|
|
|
sha256 = "14fb4ad3fb7529785844a25fae5d32272619fb5973cc02c8784018055470ca01";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ setuptools_scm cython ];
|
|
|
|
propagatedBuildInputs = [ numpy scikitlearn ];
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|