# -*- 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                youtube-search-python
version             1.6.6
revision            1
categories          net multimedia python
platforms           {darwin any}
license             MIT
description         Search for YouTube videos, channels & playlists
long_description    {*}${description}
homepage            https://github.com/alexmercerind/youtube-search-python
maintainers         nomaintainer
supported_archs     noarch

checksums           rmd160  6e55d4c4b94280f2ab463fa84fde9fc08374c24b \
                    sha256  4568d1d769ecd7eb4bb8365f04eec6e364c5f70eec7b3765f543daebb135fcf5 \
                    size    115732

subport yewtube-search-python {
    python.rootname yewtube_search_python
    version         1.6.7
    revision        0
    homepage        https://github.com/iamtalhaasghar/yewtube-search-python
    checksums       rmd160  1a1a7fc5cfc88b3d9b1b82d68e951922cb0b201e \
                    sha256  87d0d728f8ed5a929570c061b5e7335767d04497e2141371da94744c3327506e \
                    size    115498
}

# Must match yewtube port:
set python.version  313

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

# https://github.com/mps-youtube/yewtube/issues/1303
# https://github.com/NixOS/nixpkgs/pull/396845
# Still broken even in yewtube_search_python fork.
patchfiles          patch-httpx-0.28.diff
