nixpkgs/pkgs/development/python-modules/snakemake-storage-plugin-s3/default.nix
2026-05-22 08:40:29 +00:00

72 lines
1.6 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
poetry-core,
# dependencies
boto3,
botocore,
snakemake-interface-common,
snakemake-interface-storage-plugins,
urllib3,
# tests
pytestCheckHook,
snakemake,
writableTmpDirAsHomeHook,
}:
buildPythonPackage (finalAttrs: {
pname = "snakemake-storage-plugin-s3";
version = "0.3.6";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "snakemake";
repo = "snakemake-storage-plugin-s3";
tag = "v${finalAttrs.version}";
hash = "sha256-hvyQ6V6POUBWTCWt9moQlH0RgSM4J36kjbXK4TtO8Bo=";
};
build-system = [ poetry-core ];
dependencies = [
boto3
botocore
snakemake-interface-storage-plugins
snakemake-interface-common
urllib3
];
pythonImportsCheck = [ "snakemake_storage_plugin_s3" ];
nativeCheckInputs = [
pytestCheckHook
snakemake
writableTmpDirAsHomeHook
];
enabledTestPaths = [ "tests/tests.py" ];
disabledTests = [
# Requires internet access
"test_storage"
# snakemake_interface_common.exceptions.WorkflowError: Failed to create local storage prefix .snakemake/storage/s3
# PermissionError: [Errno 13] Permission denied: '.snakemake'
"test_group_workflow"
"test_simple_workflow"
];
meta = {
description = "Snakemake storage plugin for S3 API storage (AWS S3, MinIO, etc.)";
homepage = "https://github.com/snakemake/snakemake-storage-plugin-s3";
changelog = "https://github.com/snakemake/snakemake-storage-plugin-s3/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ veprbl ];
};
})