Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 26 lines 771 B view raw
1{ lib, fetchurl, buildPythonPackage, numpy, scikitlearn, setuptools_scm, cython, pytest }: 2 3buildPythonPackage rec { 4 pname = "hmmlearn"; 5 version = "0.2.3"; 6 7 src = fetchurl { 8 url = "mirror://pypi/h/hmmlearn/${pname}-${version}.tar.gz"; 9 sha256 = "8003d5dc55612de8016156abdc7aa1dd995abc2431adb1ef33dd84a6d29e56bf"; 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}