Files
2021-01-29 11:50:28 -05:00

57 lines
1.8 KiB
Tcl

# -*- 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-pytest-mock
version 3.5.1
revision 0
categories-append devel
license MIT
maintainers nomaintainer
platforms darwin
description Thin-wrapper around the mock package for easier use with \
py.test
long_description ${description}. This plugin installs a mocker \
fixture which is a thin-wrapper around the \
patching API provided by the mock package, but \
with the benefit of not having to worry about \
undoing patches at the end of a test.
homepage https://github.com/pytest-dev/pytest-mock/
checksums rmd160 d327719487c3820789ada501a31970c89ecf693a \
sha256 a1e2aba6af9560d313c642dae7e00a2a12b022b80301d9d7fc8ec6858e1dd9fc \
size 29135
supported_archs noarch
python.versions 36 37 38 39
if {${name} ne ${subport}} {
depends_build-append \
port:py${python.version}-setuptools \
port:py${python.version}-setuptools_scm
depends_run-append \
port:py${python.version}-mock \
port:py${python.version}-pytest
post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} LICENSE README.rst \
${destroot}${docdir}
}
test.run yes
test.cmd py.test-${python.branch}
test.target
test.env PYTHONPATH=${worksrcpath}/build/lib
livecheck.type none
}