# IT4Innovations
# LK 2023
# Je to kravina, ale postup je spustit, pockat az to spadne, spustit s -x, zkopirovat modulefile, pridat do nej 
# prepend_path("PYTHONPATH", pathJoin(root, "lib/python3.10/site-packages")), udelat odkaz do tools/s3cmd a je to

easyblock = 'PythonBundle'

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

homepage = 'https://pypi.python.org/pypi/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': '12.2.0'}

builddependencies = [
    ('binutils', '2.39'),
]

dependencies = [
    ('Python', '3.10.8'),
]

use_pip = True
download_dep_fail = True

exts_list = [
    ('python-magic', '0.4.27', {
        'checksums': ['c1ba14b08e4a5f5c31a302b7721239695b2f0f058d125bd5ce1ee36b9d9d3c3b'],
    }),
    (name, version, {
        'checksums': ['15330776e7ff993d8ae0ac213bf896f210719e9b91445f5f7626a8fa7e74e30b'],
    }),
]

sanity_check_paths = {
    'files': ['bin/s3cmd'],
    'dirs': ['lib/python%(pyshortver)s/site-packages/'],
}

moduleclass = 'tools'
