1{ lib 2, fetchPypi 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.3.0"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.6"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-0TqR6jaV34gUZePTYTLX7vToTUg/S6U4pLRuJLXqEA8="; 23 }; 24 25 buildInputs = [ 26 setuptools-scm 27 cython 28 pybind11 29 ]; 30 31 propagatedBuildInputs = [ 32 numpy 33 scikit-learn 34 ]; 35 36 nativeCheckInputs = [ 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}