# -*- 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-fs
version 2.4.16
revision 1
license MIT
platforms {darwin any}
supported_archs noarch
maintainers nomaintainer
description Python's filesystem abstraction layer
long_description {*}${description}
homepage https://github.com/PyFilesystem/pyfilesystem2
checksums rmd160 8f6ef82ac6c3e24901bfd64603bcbf1628d024dc \
sha256 ae97c7d51213f4b70b6a958292530289090de3a7e15841e108fbe144f069d313 \
size 187441
python.versions 310 311 312 313 314 315
if {${name} ne ${subport}} {
# Upstream hasn’t landed anything substantive since 2022, but these pull
# requests pending against the upstream keep the module alive and current.
patchfiles-append patch-pr_586.diff \
patch-pr_588.diff \
patch-pr_589.diff \
patch-pr_590.diff \
patch-pr_605.diff \
patch-pr_606.diff
depends_lib-append \
port:py${python.version}-appdirs \
port:py${python.version}-six \
port:py${python.version}-tz
post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} README.md LICENSE \
${destroot}${docdir}
}
depends_test-append port:py${python.version}-parameterized
test.run yes
test.args-append --ignore=tests/test_ftpfs.py
if {${python.version} >= 315} {
# https://github.com/python/cpython/pull/134890 broke this test in
# Python 3.15.
test.args-append \
--ignore=tests/test_doctest.py
}
}