linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / hmmlearn / default.nix
blob8d2afcf5e722b98e676692eab38330a730defc08
1 { lib, fetchurl, buildPythonPackage, numpy, scikitlearn, setuptools_scm, cython, pytest }:
3 buildPythonPackage rec {
4   pname = "hmmlearn";
5   version = "0.2.5";
7   src = fetchurl {
8     url = "mirror://pypi/h/hmmlearn/${pname}-${version}.tar.gz";
9     sha256 = "14fb4ad3fb7529785844a25fae5d32272619fb5973cc02c8784018055470ca01";
10   };
12   buildInputs = [ setuptools_scm cython ];
13   propagatedBuildInputs = [ numpy scikitlearn ];
14   checkInputs = [ pytest ];
16   checkPhase = ''
17     pytest --pyargs hmmlearn
18   '';
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   };