# -*- 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
github.setup pydicom pydicom 1.2.0 v
python.versions 27 34 35 36 37
maintainers {eborisch @eborisch} \
description Python Module for working with DICOM files
long_description pydicom is a pure python package for working with DICOM \
files. It was made for inspecting and modifying DICOM \
files in an easy pythonic way. The modifications can be \
written again to a new file. As a pure python package, it \
should run anywhere python runs without any other \
homepage https://pydicom.github.io/pydicom/stable/index.html
rmd160 a3f141868318f9877d17dc06888dea88a5419528 \
sha256 b89e285e0b9d24b47715e4da5ebc6716715fd775f7c15eb8b70b5d925c068905
if {${name} ne ${subport}} {
depends_lib-append port:py${python.version}-numpy
variant doc description "Build offline documentation" {
port:py${python.version}-alabaster \
port:py${python.version}-matplotlib\
port:py${python.version}-numpydoc \
port:py${python.version}-Pillow \
port:py${python.version}-sphinx \
port:py${python.version}-sphinx-gallery \
port:py${python.version}-sphinx-bootstrap-theme \
port:py${python.version}-sphinx_rtd_theme
reinplace s/sphinx-build/sphinx-build-${python.branch}/ \
if {${subport} eq "py27-pydicom"} {
reinplace {s/print(\(.*\), end=.*/print \1,/} \
examples/input_output/plot_read_dicom_directory.py
if {[variant_isset doc]} {
system -W ${worksrcpath}/doc/ \
"env PYTHONPATH='${worksrcpath}/build/lib' make html"
set DOCDIR ${destroot}${prefix}/share/doc/${subport}