# -*- 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.20.1
revision            0
categories-append   devel
platforms           darwin
license             MPL-2

python.versions     27 35 36 37 38 39 310

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  4a3ee5ef2377b00d7524c941ef8bb99c668f1132 \
                    sha256  1057f8f27a9f3e1eac341502ea4a43f5045161f797bb661e176a67b77c5b1795 \
                    size    303676

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

    if {${python.version} eq 27} {
        version             4.57.1
        revision            0
        epoch               1

        checksums           rmd160  a7d04bf21c941fd427b0c1af5e9ab5bd87fc6610 \
                            sha256  3c4369a4b0a1348561048bcda5f1db951a1b8e2a514ea8e8c70d36e656bf6fa0 \
                            size    233528

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

    if {${python.version} == 35} {
        version             5.33.2
        revision            0
        checksums           rmd160  ba112a0d4a97ffaf0a0aa6e6ab2c135e0dd96d10 \
                            sha256  5cc9073ee5a5c109c8d731a52c304729dbb6affed570eb7d35908bfdd937975e \
                            size    267988
    }

    livecheck.type      none

    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."
}
