# -*- 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-xraydb
version             4.5.8
revision            1

categories-append   science
platforms           {darwin any}
supported_archs     noarch
license             public-domain
maintainers         {nist.gov:joe.fowler @joefowler} openmaintainer

description         X-ray reference data in a SQLite library, including a Python interface.
long_description \
    ${description} The repository contains useful data about the interactions of X-rays with matter. \
    It packages these different data sources into a single sqlite3 database which can, in principle, \
    be used by a very large number of computer programming languages and environments.

homepage            https://xraypy.github.io/XrayDB

checksums           rmd160  45d502164e6cb963e29f9eb79719c76fdb9679f4 \
                    sha256  4414474c10be6dd8f273062fe57c1342e7a9f4c8f8c2c86881acd2ce013182ff \
                    size    3851174

python.versions     310 311 312 313

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

    depends_run-append \
        port:py${python.version}-numpy \
        port:py${python.version}-scipy \
        port:py${python.version}-platformdirs \
        port:py${python.version}-sqlalchemy

    test.run        yes
}
