# -*- 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.170.0
revision            0

categories-append   devel
platforms           {darwin any}
license             MPL-2
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           rmd160  479b92075ce5cd29d935e79e88e4d45164e42b18 \
                    sha256  8a130d8a84819798d0bc217ac53b12ebe1f08c97ac35fae8e4ec97348d633427 \
                    size    517248

python.versions     310 311 312 313 314 315

if {${name} ne ${subport}} {
    if {${os.platform} eq "darwin" && ${os.major} < 17} {
        # Rust-free release:
        version     6.155.7
        revision    0
        checksums   rmd160  50bc745f11506fa01622820ccaf47b7f18894a89 \
                    sha256  d8d6091753d0669db3c90c5e5b346cb37c72f3dd9378c8413acb1fd5da63f7ea \
                    size    478291
    } else {
        python.pep517_backend maturin
    }

    depends_lib-append \
                    port:py${python.version}-sortedcontainers

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

    # 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
}
