Files
nixpkgs/pkgs/development/python-modules/hmmlearn/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

53 lines
867 B
Nix

{
lib,
fetchPypi,
buildPythonPackage,
numpy,
scikit-learn,
pybind11,
setuptools-scm,
cython,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "hmmlearn";
version = "0.3.3";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-HTxdxMUlfgwjjcH+U4dwC4y5h+q4CO2z4Mc4KfHMROw=";
};
buildInputs = [
setuptools-scm
cython
pybind11
];
propagatedBuildInputs = [
numpy
scikit-learn
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "hmmlearn" ];
pytestFlags = [
"--pyargs"
"hmmlearn"
];
meta = {
description = "Hidden Markov Models in Python with scikit-learn like API";
homepage = "https://github.com/hmmlearn/hmmlearn";
license = lib.licenses.bsd3;
maintainers = [ ];
};
}