# -*- 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.2
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  e3cc930ad38ff78642a1b6a92048a06c44c7ef2c \
                    sha256  584836cf6e04ada3f76c2e6b27b708a651479fcc044471d21d4f753fee9d1929 \
                    size    159123

python.versions     311 312 313 314 315

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
}
