mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 14:10:33 +03:00
82 lines
1.4 KiB
Nix
82 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
setuptools,
|
|
|
|
# dependencies
|
|
boto3,
|
|
importlib-metadata,
|
|
jsonschema,
|
|
mock,
|
|
platformdirs,
|
|
pydantic,
|
|
pyyaml,
|
|
rich,
|
|
|
|
# optional-dependencies
|
|
black,
|
|
pandas,
|
|
pylint,
|
|
pytest,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sagemaker-core";
|
|
version = "1.0.10";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aws";
|
|
repo = "sagemaker-core";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-UloQJ5B10XXPbwsktVZzjcW7BLW8wCAw3wGmAkSl6wc=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"importlib-metadata"
|
|
"mock"
|
|
];
|
|
|
|
dependencies = [
|
|
boto3
|
|
importlib-metadata
|
|
jsonschema
|
|
mock
|
|
platformdirs
|
|
pydantic
|
|
pyyaml
|
|
rich
|
|
];
|
|
|
|
optional-dependencies = {
|
|
codegen = [
|
|
black
|
|
pandas
|
|
pylint
|
|
pytest
|
|
];
|
|
};
|
|
|
|
pythonImportsCheck = [
|
|
"sagemaker_core"
|
|
];
|
|
|
|
# Only a single test which fails with:
|
|
# ValueError: Must setup local AWS configuration with a region supported by SageMaker.
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Python SDK designed to provide an object-oriented interface for interacting with Amazon SageMaker resources";
|
|
homepage = "https://github.com/aws/sagemaker-core";
|
|
changelog = "https://github.com/aws/sagemaker-core/blob/${src.rev}/CHANGELOG.md";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
|
};
|
|
}
|