# -*- 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             2025.0.4
revision            0
categories-append   devel
platforms           {darwin any}
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            https://pipenv.pypa.io/en/latest/

checksums           rmd160  484b8fc4b69b1d9c0ec1c87fc6cbe8a59496ca74 \
                    sha256  36fc2a7841ccdb2f58a9f787b296c2e15dea3b5b79b84d4071812f28b7e8d7a2 \
                    size    4479128

python.default_version 313

depends_lib-append port:py${python.version}-certifi \
                   port:py${python.version}-packaging \
                   port:py${python.version}-setuptools \
                   port:py${python.version}-virtualenv

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

    delete ${destroot}${python.pkgd}/docs
    delete ${destroot}${python.pkgd}/examples
}

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