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