nixpkgs/pkgs/development/python-modules/hmmlearn/default.nix

27 lines
773 B
Nix
Raw Normal View History

2019-06-03 15:20:51 +01:00
{ lib, fetchurl, buildPythonPackage, numpy, scikitlearn, setuptools_scm, cython, pytest }:
buildPythonPackage rec {
pname = "hmmlearn";
version = "0.2.4";
src = fetchurl {
url = "mirror://pypi/h/hmmlearn/${pname}-${version}.tar.gz";
sha256 = "0f5cb598a7494b9703c6188246dc89e529d46cbb6700eca70cc895085f0b3cc3";
};
2019-06-03 15:20:51 +01:00
buildInputs = [ setuptools_scm cython ];
2018-11-24 13:17:15 +00:00
propagatedBuildInputs = [ numpy scikitlearn ];
2019-06-03 15:20:51 +01:00
checkInputs = [ pytest ];
2019-06-03 15:20:51 +01:00
checkPhase = ''
pytest --doctest-modules --pyargs hmmlearn
'';
meta = with lib; {
description = "Hidden Markov Models in Python with scikit-learn like API";
homepage = "https://github.com/hmmlearn/hmmlearn";
license = licenses.bsd3;
maintainers = with maintainers; [ abbradar ];
};
}