mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
python312Packages.skops: init at 0.10.0
This commit is contained in:
parent
f02fa2f654
commit
267de92516
65
pkgs/development/python-modules/skops/default.nix
Normal file
65
pkgs/development/python-modules/skops/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user