1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
pytestCheckHook,
pytest-cov-stub,
huggingface-hub,
matplotlib,
pandas,
scikit-learn,
stdenv,
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"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# Segfaults on darwin
"skops/io/tests/test_persist.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 ];
};
}
|