# -*- 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-hypothesis
version             6.151.9
revision            0

categories-append   devel
platforms           {darwin any}
supported_archs     noarch
license             MPL-2

python.versions     39 310 311 312 313 314

maintainers         {khindenburg @kurthindenburg} \
                    openmaintainer

description         A library for property based testing

long_description \
   Hypothesis is an advanced testing library for Python. It lets you write\
   tests which are parametrized by a source of examples, and then generates\
   simple and comprehensible examples that make your tests fail.

homepage            https://pypi.python.org/pypi/hypothesis

checksums           md5     f7762839f7729657d47bf67e927c85a4 \
                    rmd160  4c6c63b54c7e469223bbc47315825d655360bab7 \
                    sha256  2f284428dda6c3c48c580de0e18470ff9c7f5ef628a647ee8002f38c3f9097ca \
                    size    463534

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-attrs \
                    port:py${python.version}-sortedcontainers

    if {${python.version} < 311} {
        depends_lib-append \
                    port:py${python.version}-exceptiongroup
    }

    if {${python.version} == 39} {
        version     6.141.1
        revision    0
        checksums   rmd160  c68613cf86ca872a8beb277aefc2fcedd719ef7c \
                    sha256  8ef356e1e18fbeaa8015aab3c805303b7fe4b868e5b506e87ad83c0bf951f46f \
                    size    467389
    }

    # Leave for next major release
    if {0} {
    notes "Welcome to the next major version of Hypothesis!\
    If you were running on the last version of Hypothesis 5.x without\
    any Hypothesis deprecation warnings (or using private APIs), this\
    upgrade should cause no issues.\
    See https://hypothesis.readthedocs.io/en/latest/changes.html#v6-0-0\
    for more information."
    }

    livecheck.type  none
}
