# -*- 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-socid-extractor
python.rootname     socid_extractor
version             0.1.0
revision            0

license             GPL-3
maintainers         {mps @Schamschula} openmaintainer
description         Extract information about a user from profile webpages / API \
                    responses and save it in machine-readable format.
long_description    {*}${description}
homepage            https://github.com/soxoj/socid-extractor

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  f859d147dfd4021fe1dcfcea5f9b49e8d3646b8c \
                    sha256  94e5e35be06fc3b281900122e12e8feb1a895b189417e311e07f219522d0789e \
                    size    85409

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    post-patch {
        move ${worksrcpath}/tests ${worksrcpath}/socid_extractor/tests
    }

    depends_lib-append  \
                    port:py${python.version}-beautifulsoup4 \
                    port:py${python.version}-dateutil \
                    port:py${python.version}-requests
}
