2019-06-03 14:20:51 +00:00
|
|
|
{ lib, fetchurl, buildPythonPackage, numpy, scikitlearn, setuptools_scm, cython, pytest }:
|
2017-07-26 17:32:29 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 11:26:09 +00:00
|
|
|
pname = "hmmlearn";
|
2020-10-25 09:06:53 +00:00
|
|
|
version = "0.2.4";
|
2017-07-26 17:32:29 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "mirror://pypi/h/hmmlearn/${pname}-${version}.tar.gz";
|
2020-10-25 09:06:53 +00:00
|
|
|
sha256 = "0f5cb598a7494b9703c6188246dc89e529d46cbb6700eca70cc895085f0b3cc3";
|
2017-07-26 17:32:29 +00:00
|
|
|
};
|
|
|
|
|
2019-06-03 14:20:51 +00:00
|
|
|
buildInputs = [ setuptools_scm cython ];
|
2018-11-24 13:17:15 +00:00
|
|
|
propagatedBuildInputs = [ numpy scikitlearn ];
|
2019-06-03 14:20:51 +00:00
|
|
|
checkInputs = [ pytest ];
|
2017-07-26 17:32:29 +00:00
|
|
|
|
2019-06-03 14:20:51 +00:00
|
|
|
checkPhase = ''
|
|
|
|
pytest --doctest-modules --pyargs hmmlearn
|
|
|
|
'';
|
2017-07-26 17:32:29 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Hidden Markov Models in Python with scikit-learn like API";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/hmmlearn/hmmlearn";
|
2017-07-26 17:32:29 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|