Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 26 lines 757 B view raw
1{ lib, fetchurl, buildPythonPackage, numpy, scikit-learn, setuptools_scm, cython, pytest }: 2 3buildPythonPackage rec { 4 pname = "hmmlearn"; 5 version = "0.2.5"; 6 7 src = fetchurl { 8 url = "mirror://pypi/h/hmmlearn/${pname}-${version}.tar.gz"; 9 sha256 = "14fb4ad3fb7529785844a25fae5d32272619fb5973cc02c8784018055470ca01"; 10 }; 11 12 buildInputs = [ setuptools_scm cython ]; 13 propagatedBuildInputs = [ numpy scikit-learn ]; 14 checkInputs = [ pytest ]; 15 16 checkPhase = '' 17 pytest --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}