# IT4Innovations 2021
# JKm LK
# build first with --stop postproc and then --module-only --rebuild in order to skip sanity checks

easyblock = 'PythonPackage'

name = 's3cmd'
version = '2.1.0'
versionsuffix = '-Python-%(pyver)s'

homepage = "https://s3tools.org/s3cmd"
description = """S3cmd is a free command line tool and client for uploading, retrieving and managing data in Amazon S3 and other cloud storage service providers that use the S3 protocol, such as Google Cloud Storage or DreamHost DreamObjects. It is best suited for power users who are familiar with command line programs. It is also ideal for batch scripts and automated backup to S3, triggered from cron, etc."""

toolchain = {'name': 'GCCcore', 'version': '10.2.0'}

source_urls = ["https://github.com/s3tools/s3cmd/archive/refs/tags/"]
sources = ['v2.1.0.tar.gz']

dependencies = [
    ('Python', '3.8.6'),
    ('magic', '0.4.24', '-Python-%(pyver)s'),
]

download_dep_fail = True
use_pip = True

moduleclass = 'tools'
