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

python.versions     27 34 35 36

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  8a598bb9d2bc25de7ae929c73db7f33b0c7ff059 \
                    sha256  b26943fa3e0dc7127671cf37822bf061b83cc31d4ac23ceb0ebc12f93b1933ce \
                    size    150199

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

    livecheck.type      none
} else {
    livecheck.type      pypi
}