1{ lib 2, fetchurl 3, buildPythonPackage 4, numpy 5, scikit-learn 6, pybind11 7, setuptools-scm 8, cython 9, pytestCheckHook 10, pythonOlder 11}: 12 13buildPythonPackage rec { 14 pname = "hmmlearn"; 15 version = "0.2.8"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.6"; 19 20 src = fetchurl { 21 url = "mirror://pypi/h/hmmlearn/${pname}-${version}.tar.gz"; 22 hash = "sha256-aWkx49zmgBzJt4xin1QwYd1+tnpxFVsD0bOeoXKipfk="; 23 }; 24 25 buildInputs = [ 26 setuptools-scm 27 cython 28 pybind11 29 ]; 30 31 propagatedBuildInputs = [ 32 numpy 33 scikit-learn 34 ]; 35 36 checkInputs = [ 37 pytestCheckHook 38 ]; 39 40 pythonImportsCheck = [ 41 "hmmlearn" 42 ]; 43 44 pytestFlagsArray = [ 45 "--pyargs" 46 "hmmlearn" 47 ]; 48 49 meta = with lib; { 50 description = "Hidden Markov Models in Python with scikit-learn like API"; 51 homepage = "https://github.com/hmmlearn/hmmlearn"; 52 license = licenses.bsd3; 53 maintainers = with maintainers; [ abbradar ]; 54 }; 55}