# -*- 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.14.0
revision            0
categories-append   science math
license             BSD
supported_archs     noarch
platforms           {darwin any}

python.versions     310 311 312 313 314

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  c514ec3aca6b9dbae1f0fce4198fdcdce101a711 \
                    sha256  d3d3fe8df1e5a0b42f0e7bdf50541697dbe7d23746e894990c030e2b05e72517 \
                    size    7793921

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

    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}]
"
}
