# -*- 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-cpuinfo
version             7.0.0
platforms           darwin
license             MIT
maintainers         nomaintainer

description         Py-cpuinfo gets CPU info with pure Python.

long_description    {*}${description} Py-cpuinfo should work without \
                    any extra programs or libraries, beyond what your \
                    OS provides. It does not require any \
                    compilation(C/C++, assembly, et cetera) to use. It \
                    works with Python 2 and 3.

homepage            https://github.com/workhorsy/py-cpuinfo

python.rootname     ${name}

checksums           rmd160  a7a8a67965ee76402aa6dda66dadafc4e358373d \
                    sha256  9aa2e49675114959697d25cf57fec41c29b55887bff3bc4809b44ac6f5730097 \
                    size    95887

supported_archs     noarch

python.versions     37 38 39

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

    depends_test-append \
                    port:py${python.version}-pytest

    test.run        yes
    test.env        PYTHONPATH=${worksrcpath}/build/lib
    test.cmd        py.test-${python.branch}
    test.target     tests

    livecheck.type  none
}
