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

github.setup        letmaik rawpy 0.17.3 v
github.tarball_from archive
name                py-rawpy
revision            0
license             MIT

checksums           rmd160  2b77e731a084b2102a46a2c8002aa7ef8c20adc8 \
                    sha256  1d6b180c79a5b9eb7bd8131a72c3f48be8adaa7729da5771aad2687f6fd6b856 \
                    size    67235678

python.versions     310 311
python.pep517       yes

maintainers         {juliensalort.org:mp @jsalort} openmaintainer
categories-append   graphics

description         Python wrapper for the LibRaw library
long_description    rawpy is an easy-to-use Python wrapper for the LibRaw library. It also contains some extra \
                    functionality for finding and repairing hot/dead pixels.

if {${name} ne ${subport}} {
    patchfiles      setup.py.diff

    depends_build-append \
                    port:py${python.version}-cython \
                    port:pkgconfig

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

    depends_test-append \
                    port:py${python.version}-imageio

    test.run        yes
}
