# -*- 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-pysap
version             0.1.19
revision            1

license             GPL-2+
maintainers         nomaintainer

description         Python library for crafting SAP's network protocols packets
long_description    {*}${description}

homepage            https://www.secureauth.com/labs/open-source-tools/pysap
use_zip             yes

checksums           rmd160  debecbd4e59f93dc73436a66b0a76b871f92eb82 \
                    sha256  a9b772771be41c87c2457ee2476a6d9cc91d659decd287d6c5d502de61b5086c \
                    size    11045231

# NOTE: python3 is under development and doesn't pass it's tests :(
# See: https://github.com/OWASP/pysap/tree/master-0.2
python.versions     27

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

    depends_lib-append \
                    port:py${python.version}-cryptography \
                    path:bin/scapy-${python.branch}:py${python.version}-scapy
}
