# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0
PortGroup           select 1.0

name                py-sympy
version             1.7.1
revision            0
categories-append   science math
platforms           darwin
license             BSD
supported_archs     noarch

python.versions     27 35 36 37 38 39

maintainers         {stromnov @stromnov} openmaintainer

description         Python module for symbolic mathematics.

long_description \
    SymPy is a Python library for symbolic mathematics. It aims to \
    become a full-featured computer algebra system (CAS) while keeping \
    the code as simple as possible in order to be comprehensible \
    and easily extensible. SymPy is written entirely in Python and does \
    not require any external libraries.

homepage            https://sympy.org/

checksums           rmd160  a6983e32b75fbfddf828957e1161bdcb6a23b544 \
                    sha256  a3de9261e97535b83bb8607b0da2c7d03126650fafea2b2789657b229c246b2e \
                    size    6473875

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-setuptools \
                        port:py${python.version}-mpmath

    if {${python.version} <= 35} {
        version             1.5.1
        revision            0
        distname            ${python.rootname}-${version}
        checksums           rmd160  ea2680ccf760b469d393c72b5e1f585545231fbf \
                            sha256  d77901d748287d15281f5ffe5b0fef62dd38f357c2b827c44ff07f35695f4e7e \
                            size    6294719
    }

    depends_run         port:py-sympy_select

    select.group        py-sympy
    select.file         ${filespath}/py${python.version}-sympy

    notes "
To make the Python ${python.branch} version of py-sympy the one that is run\
when you execute the commands without a version suffix, e.g. 'isympy', run:

port select --set ${select.group} [file tail ${select.file}]
"

    livecheck.type      none
}
