Merge pull request #317010 from bcdarwin/init-python3-skops

python311Packages.skops: init at 0.9.0
This commit is contained in:
OTABI Tomoya 2024-08-22 23:07:38 +09:00 committed by GitHub
commit 85a1be86c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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

@ -14544,6 +14544,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 { };