#IT4Innovations
#BS 2024

name = 'Python'
version = '3.11.5'

homepage = 'https://python.org/'
description = """Python is a programming language that lets you work more quickly and integrate your systems
 more effectively."""

toolchain = {'name': 'foss', 'version': '2022b'}
toolchainopts = {'pic': True}

source_urls = ['https://www.python.org/ftp/%(namelower)s/%(version)s/']
sources = [SOURCE_TGZ]
checksums = ['a12a0a013a30b846c786c010f2c19dd36b7298d888f7c4bd1581d90ce18b5e58']

builddependencies = [
    ('UnZip', '6.0', '-GCCcore-13.2.0'),
    ('pkgconf', '2.0.3', '-GCCcore-13.2.0'),
]

dependencies = [
    ('binutils', '2.40', '-GCCcore-13.2.0'),
    ('bzip2', '1.0.8', '-GCCcore-13.2.0'),  # required for bz2 package in Python stdlib
    ('zlib', '1.2.13', '-GCCcore-13.2.0'),
    ('libreadline', '8.2', '-GCCcore-13.2.0'),
    ('ncurses', '6.4', '-GCCcore-13.2.0'),
    ('SQLite', '3.43.1', '-GCCcore-13.2.0'),
    ('XZ', '5.4.4', '-GCCcore-13.2.0'),
    ('libffi', '3.4.4', '-GCCcore-13.2.0'),
]

install_pip = True

exts_default_options = {
    'download_dep_fail': True,
    'sanity_pip_check': True,
    'source_urls': [PYPI_SOURCE],
    'use_pip': True,
}

# order is important!
# package versions updated 2023-09-28
exts_list = [
    ('flit_core', '3.9.0', {
        'checksums': ['72ad266176c4a3fcfab5f2930d76896059851240570ce9a98733b658cb786eba'],
    }),
    ('wheel', '0.41.2', {
        'checksums': ['0c5ac5ff2afb79ac23ab82bab027a0be7b5dbcf2e54dc50efe4bf507de1f7985'],
    }),
    ('tomli', '2.0.1', {
        'checksums': ['de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f'],
    }),
    ('packaging', '23.2', {
        'checksums': ['048fb0e9405036518eaaf48a55953c750c11e1a1b68e0dd1a9d62ed0c092cfc5'],
    }),
    ('typing_extensions', '4.8.0', {
        'checksums': ['df8e4339e9cb77357558cbdbceca33c303714cf861d1eef15e1070055ae8b7ef'],
    }),
    ('setuptools-scm', '8.0.4', {
        'checksums': ['b5f43ff6800669595193fd09891564ee9d1d7dcb196cab4b2506d53a2e1c95c7'],
    }),
    ('setuptools', '68.2.2', {
        'checksums': ['4ac1475276d2f1c48684874089fefcd83bd7162ddaafb81fac866ba0db282a87'],
    }),
    ('pip', '23.2.1', {
        'checksums': ['fb0bd5435b3200c602b5bf61d2d43c2f13c02e29c1707567ae7fbc514eb9faf2'],
    }),
]

moduleclass = 'lang'
