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

python.versions     27 35 36 37 38

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
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
distname            ${python.rootname}-${version}

checksums           rmd160  c5fe92c1be802bf45f743388e2cd0df092617817 \
                    sha256  57f0e74e21c437b7acc7c3a06c8773a0327d8f58bf5cb1682dc55e8860e79325 \
                    size    230877

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
        # Below distname is required for this to work
        distname            ${python.rootname}-${version}

        checksums           rmd160  a7d04bf21c941fd427b0c1af5e9ab5bd87fc6610 \
                            sha256  3c4369a4b0a1348561048bcda5f1db951a1b8e2a514ea8e8c70d36e656bf6fa0 \
                            size    233528

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

        livecheck.type      none
    }

    livecheck.type      none
}
