# -*- 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.51.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 315
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/74/6d/2cae01adf4db83e2862e254bc053def829a9603a1c68431b7c9aae0ecba0
    distname        selenium-${version}-py3-none-any

    checksums       rmd160  1ec8351e7354224847cfa1aa16993e58446c1e2c \
                    sha256  5531e99df3c60a298c4bef38de825aec4aa8ca238438ac21511d650b58dbdd87 \
                    size    11794382

    extract.suffix  .whl
    extract.only

    build           {}

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