nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 27 lines 817 B view raw
1{ lib, fetchurl, buildPythonPackage 2, numpy, scikit-learn, pybind11, setuptools-scm, cython 3, pytestCheckHook }: 4 5buildPythonPackage rec { 6 pname = "hmmlearn"; 7 version = "0.2.7"; 8 9 src = fetchurl { 10 url = "mirror://pypi/h/hmmlearn/${pname}-${version}.tar.gz"; 11 sha256 = "sha256-a0snIPJ6912pNnq02Q3LAPONozFo322Rf57F3mZw9uE="; 12 }; 13 14 buildInputs = [ setuptools-scm cython pybind11 ]; 15 propagatedBuildInputs = [ numpy scikit-learn ]; 16 checkInputs = [ pytestCheckHook ]; 17 18 pythonImportsCheck = [ "hmmlearn" ]; 19 pytestFlagsArray = [ "--pyargs" "hmmlearn" ]; 20 21 meta = with lib; { 22 description = "Hidden Markov Models in Python with scikit-learn like API"; 23 homepage = "https://github.com/hmmlearn/hmmlearn"; 24 license = licenses.bsd3; 25 maintainers = with maintainers; [ abbradar ]; 26 }; 27}