# -*- 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                pipenv
version             2020.8.13
revision            0
categories-append   devel
platforms           darwin
license             MIT
supported_archs     noarch

maintainers         {danchr @danchr} openmaintainer

description         The officially recommended Python packaging tool.

long_description    ${description} \
                    Pipenv -- Python Dev Workflow for Humans -- is a \
                    tool that aims to bring the best of \
                    all packaging worlds (bundler, composer, npm, \
                    cargo, yarn, etc.) to the Python world. Windows is \
                    a first-class citizen, in our world. \
                    \
                    \n\nIt automatically creates and manages a virtualenv \
                    for your projects, as well as adds/removes \
                    packages from your Pipfile as you \
                    install/uninstall packages. It also generates the \
                    ever-important Pipfile.lock, which is used to \
                    produce deterministic builds.

homepage            http://pipenv.org/
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}

distname            ${python.rootname}-${version}

checksums           rmd160  35a3af49ee09b66ec9f6ed7faa61fcd31938c6a4 \
                    sha256  eff0e10eadb330f612edfa5051d3d8e775e9e0e918c3c50361da703bd0daa035 \
                    size    5153905


python.default_version 38

depends_lib-append \
    port:py${python.version}-pip \
    port:py${python.version}-parver \
    port:py${python.version}-invoke \
    port:py${python.version}-certifi \
    port:py${python.version}-setuptools \
    port:py${python.version}-virtualenv \
    port:py${python.version}-virtualenv-clone

post-destroot {
    xinstall -m 644 \
        ${destroot}${python.pkgd}/${name}/${name}.1 \
        ${destroot}${prefix}/share/man/man1
}

if {${python.version} < 34} {
    depends_lib-append \
        port:py${python.version}-pathlib
}

if {${python.version} < 30} {
    depends_lib-append \
        port:py${python.version}-requests \
        port:py${python.version}-ordereddict
}

test.run            yes
test.cmd            pipenv
test.target         install
test.args           pip
