# -*- 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

name                py-spglib
version             2.4.0
revision            0

categories-append   science
license             BSD
maintainers         {nist.gov:joe.fowler @joefowler} openmaintainer

description         Python interface for spglib (a C library for crystal symmetries).
long_description    {*}${description}

homepage            https://spglib.readthedocs.io

checksums           rmd160  c34893c3d45d54232d09348894664e244385b2fa \
                    sha256  6e63f9ee61b70f153a22d3b550b183da531f890475917fce203bad4597aac243 \
                    size    2819047

python.versions     39 310 311 312

if {${name} ne ${subport}} {
    depends_build-append \
                    port:ninja \
                    port:py${python.version}-setuptools_scm \
                    port:py${python.version}-scikit-build-core

    depends_lib-append \
                    port:py${python.version}-numpy
}
