Files
macports-ports/python/py-python-jsonrpc-server/Portfile
T
2020-05-09 12:41:20 -04:00

60 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-python-jsonrpc-server
version 0.3.4
revision 0
platforms darwin
supported_archs noarch
license MIT
maintainers {reneeotten @reneeotten} openmaintainer
description JSON RPC 2.0 server library
long_description ${description}
homepage https://github.com/palantir/python-jsonrpc-server
checksums rmd160 900bb755841932f6105be186d652aa82c6a7f54f \
sha256 c73bf5495c9dd4d2f902755bedeb6da5afe778e0beee82f0e195c4655352fe37 \
size 26123
python.versions 27 35 36 37 38
if {${name} ne ${subport}} {
if {${python.version} == 38} {
patchfiles patch-endpoint.py.diff
}
depends_build-append \
port:py${python.version}-setuptools
depends_lib-append port:py${python.version}-ujson
if {${python.version} eq 27} {
depends_lib-append \
port:py${python.version}-future \
port:py${python.version}-futures
}
depends_test-append port:py${python.version}-pytest \
port:py${python.version}-mock
test.run yes
test.cmd py.test-${python.branch}
test.args -o addopts=''
test.target
test.env PYTHONPATH=${worksrcpath}/build/lib
post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} README.rst \
LICENSE ${destroot}${docdir}
}
livecheck.type none
}