python312Packages.skops: init at 0.10.0

This commit is contained in:
Ben Darwin 2024-06-03 13:33:34 -04:00
parent f02fa2f654
commit 267de92516
2 changed files with 67 additions and 0 deletions

View File

@ -0,0 +1,65 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
pytestCheckHook,
pytest-cov-stub,
huggingface-hub,
matplotlib,
pandas,
scikit-learn,
streamlit,
tabulate,
}:
buildPythonPackage rec {
pname = "skops";
version = "0.10";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "skops-dev";
repo = "skops";
rev = "refs/tags/v${version}";
hash = "sha256-2uX5sGVdTnZEbl0VXI8E7h1pQYQVbpQeUKUchCZpgg4=";
};
build-system = [ setuptools ];
dependencies = [
huggingface-hub
scikit-learn
tabulate
];
nativeCheckInputs = [
matplotlib
pandas
pytestCheckHook
pytest-cov-stub
streamlit
];
pytestFlagsArray = [ "skops" ];
disabledTestPaths = [
# try to download data from Huggingface Hub:
"skops/hub_utils/tests"
"skops/card/tests"
# minor output formatting issue
"skops/card/_model_card.py"
];
pythonImportsCheck = [ "skops" ];
meta = {
description = "Library for saving/loading, sharing, and deploying scikit-learn based models";
mainProgram = "skops";
homepage = "https://skops.readthedocs.io/en/stable";
changelog = "https://github.com/skops-dev/skops/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.bcdarwin ];
};
}

View File

@ -14514,6 +14514,8 @@ self: super: with self; {
skodaconnect = callPackage ../development/python-modules/skodaconnect { };
skops = callPackage ../development/python-modules/skops { };
skorch = callPackage ../development/python-modules/skorch { };
skrl = callPackage ../development/python-modules/skrl { };