python3Packages.snakemake-storage-plugin-s3: cleanup
This commit is contained in:
@@ -2,24 +2,33 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
|
||||
# build-system
|
||||
poetry-core,
|
||||
|
||||
# dependencies
|
||||
boto3,
|
||||
botocore,
|
||||
poetry-core,
|
||||
snakemake,
|
||||
snakemake-interface-storage-plugins,
|
||||
snakemake-interface-common,
|
||||
snakemake-interface-storage-plugins,
|
||||
urllib3,
|
||||
|
||||
# tests
|
||||
pytestCheckHook,
|
||||
snakemake,
|
||||
writableTmpDirAsHomeHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
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${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-hvyQ6V6POUBWTCWt9moQlH0RgSM4J36kjbXK4TtO8Bo=";
|
||||
};
|
||||
|
||||
@@ -33,15 +42,31 @@ buildPythonPackage rec {
|
||||
urllib3
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ snakemake ];
|
||||
|
||||
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/${src.tag}";
|
||||
changelog = "https://github.com/snakemake/snakemake-storage-plugin-s3/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ veprbl ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user