1{ lib, fetchurl, buildPythonPackage, numpy, scikitlearn, setuptools_scm, cython, pytest }:
2
3buildPythonPackage rec {
4 pname = "hmmlearn";
5 version = "0.2.2";
6
7 src = fetchurl {
8 url = "mirror://pypi/h/hmmlearn/${pname}-${version}.tar.gz";
9 sha256 = "081c53xs5wn5vikwslallwdv0am09w9cbbggl5dbkqpnic9zx4h4";
10 };
11
12 buildInputs = [ setuptools_scm cython ];
13 propagatedBuildInputs = [ numpy scikitlearn ];
14 checkInputs = [ pytest ];
15
16 checkPhase = ''
17 pytest --doctest-modules --pyargs hmmlearn
18 '';
19
20 meta = with lib; {
21 description = "Hidden Markov Models in Python with scikit-learn like API";
22 homepage = https://github.com/hmmlearn/hmmlearn;
23 license = licenses.bsd3;
24 maintainers = with maintainers; [ abbradar ];
25 };
26}