# -*- 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-jsonpickle
version             4.0.5
revision            0

categories-append   textproc
supported_archs     noarch
platforms           {darwin any}
license             BSD
maintainers         nomaintainer

description         Python library for serializing any arbitrary \
                    object graph into JSON.
long_description    {*}${description} It can take almost any Python \
                    object and turn the object into JSON. Additionally, \
                    it can reconstitute the object back into Python.

homepage            https://jsonpickle.github.io

checksums           rmd160  cb91df3680a0b4f4ac50ce34f71d66ebac0f0ce9 \
                    sha256  f299818b39367c361b3f26bdba827d4249ab5d383cd93144d0f94b5417aacb35 \
                    size    315661

python.versions     39 310 311 312 313

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools_scm

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.rst CHANGES.rst \
            LICENSE ${destroot}${docdir}
    }
}
