blob: 4cb6d51a5fdf2289f66eb293f869e217b1fb5f84 (
plain)
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
boto3,
mlflow,
# tests
pytestCheckHook,
scikit-learn,
}:
buildPythonPackage rec {
pname = "sagemaker-mlflow";
version = "0.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "aws";
repo = "sagemaker-mlflow";
tag = "v${version}";
hash = "sha256-EmfEqL+J+cZVdBfUJtAPHpUZCoDV4X1yRfVJYWky1HU=";
};
build-system = [
setuptools
];
dependencies = [
boto3
mlflow
];
pythonImportsCheck = [ "sagemaker_mlflow" ];
nativeCheckInputs = [
pytestCheckHook
scikit-learn
];
disabledTests = [
# AssertionError: assert 's3' in '/build/source/not implemented/0/d3c16d2bad4245bf9fc68f86d2e7599d/artifacts'
"test_log_metric"
# AssertionError: assert 'not implemented' == 'mw'
"test_request_header"
# Require internet access
"test_auth_provider_returns_correct_sigv4"
"test_log_artifact"
"test_presigned_url"
"test_presigned_url_with_fields"
];
meta = {
description = "MLFlow plugin for SageMaker";
homepage = "https://github.com/aws/sagemaker-mlflow";
changelog = "https://github.com/aws/sagemaker-mlflow/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}
|