# -*- 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-selenium
version             4.38.0
revision            0

license             Apache-2
maintainers         {dstrubbe @dstrubbe} openmaintainer
platforms           {darwin any}
supported_archs     noarch

description         Python language bindings for Selenium WebDriver
long_description    The selenium package is used to automate web \
                    browser interaction from Python. Several \
                    browsers/drivers are supported (Firefox, Chrome, \
                    Internet Explorer), as well as the Remote protocol.

homepage            https://www.seleniumhq.org/

python.versions     310 311 312 313 314
python.pep517_backend

if {${name} ne ${subport}} {
    depends_run-append \
                    port:py${python.version}-urllib3 \
                    port:py${python.version}-websocket-client

    master_sites    https://files.pythonhosted.org/packages/8a/d3/76c8f4a8d99b9f1ebcf9a611b4dd992bf5ee082a6093cfc649af3d10f35b
    distname        selenium-${version}-py3-none-any

    checksums       rmd160  d4a67ac8fd17daf321e605d2423856f4b2d55867 \
                    sha256  ed47563f188130a6fd486b327ca7ba48c5b11fb900e07d6457befdde320e35fd \
                    size    9694571

    extract.suffix  .whl
    extract.only

    build           {}

    destroot.target ${distpath}/${distfiles}
}
