-
-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python310Packages.hmmlearn: disable on older Python releases
- Loading branch information
Showing
1 changed file
with
39 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,55 @@ | ||
{ lib, fetchurl, buildPythonPackage | ||
, numpy, scikit-learn, pybind11, setuptools-scm, cython | ||
, pytestCheckHook }: | ||
{ lib | ||
, fetchurl | ||
, buildPythonPackage | ||
, numpy | ||
, scikit-learn | ||
, pybind11 | ||
, setuptools-scm | ||
, cython | ||
, pytestCheckHook | ||
, pythonOlder | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "hmmlearn"; | ||
version = "0.2.8"; | ||
format = "setuptools"; | ||
|
||
disabled = pythonOlder "3.6"; | ||
|
||
src = fetchurl { | ||
url = "mirror://pypi/h/hmmlearn/${pname}-${version}.tar.gz"; | ||
sha256 = "sha256-aWkx49zmgBzJt4xin1QwYd1+tnpxFVsD0bOeoXKipfk="; | ||
hash = "sha256-aWkx49zmgBzJt4xin1QwYd1+tnpxFVsD0bOeoXKipfk="; | ||
}; | ||
|
||
buildInputs = [ setuptools-scm cython pybind11 ]; | ||
propagatedBuildInputs = [ numpy scikit-learn ]; | ||
checkInputs = [ pytestCheckHook ]; | ||
buildInputs = [ | ||
setuptools-scm | ||
cython | ||
pybind11 | ||
]; | ||
|
||
propagatedBuildInputs = [ | ||
numpy | ||
scikit-learn | ||
]; | ||
|
||
checkInputs = [ | ||
pytestCheckHook | ||
]; | ||
|
||
pythonImportsCheck = [ | ||
"hmmlearn" | ||
]; | ||
|
||
pythonImportsCheck = [ "hmmlearn" ]; | ||
pytestFlagsArray = [ "--pyargs" "hmmlearn" ]; | ||
pytestFlagsArray = [ | ||
"--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; | ||
homepage = "https://github.com/hmmlearn/hmmlearn"; | ||
license = licenses.bsd3; | ||
maintainers = with maintainers; [ abbradar ]; | ||
}; | ||
} |