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