mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
28 lines
779 B
Nix
28 lines
779 B
Nix
{ lib, fetchurl, buildPythonPackage, numpy, scikitlearn, setuptools_scm, cython, pytest }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hmmlearn";
|
|
version = "0.2.2";
|
|
name = pname + "-" + version;
|
|
|
|
src = fetchurl {
|
|
url = "mirror://pypi/h/hmmlearn/${name}.tar.gz";
|
|
sha256 = "081c53xs5wn5vikwslallwdv0am09w9cbbggl5dbkqpnic9zx4h4";
|
|
};
|
|
|
|
buildInputs = [ setuptools_scm cython ];
|
|
propagatedBuildInputs = [ numpy scikitlearn ];
|
|
checkInputs = [ pytest ];
|
|
|
|
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 ];
|
|
};
|
|
}
|