# -*- 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-w3lib
version             1.22.0
revision            0

platforms           darwin
supported_archs     noarch
license             BSD
maintainers         nomaintainer

description         Library of web-related functions
long_description    ${description}

homepage            https://github.com/scrapy/w3lib
master_sites        pypi:w/w3lib/
distname            w3lib-${version}

checksums           rmd160  2e9b10b5770857025006216b7c4d3adc59e22576 \
                    sha256  0ad6d0203157d61149fd45aaed2e24f53902989c32fc1dccc2e2bfba371560df \
                    size    39121

python.versions     27 35 36 37 38 39

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools

    depends_lib-append \
                    port:py${python.version}-six

    test.run        yes
    test.cmd        ${python.bin} tests/test_url.py
    test.env        PYTHONPATH=${worksrcpath}/build/lib
    test.target

    livecheck.type  none
}
