pkgsrc/net/py-tldextract/Makefile
adam d98cc17ad1 py-tldextract: updated to 2.2.1
2.2.1:
Bugfixes
Ignore case on punycode prefix check
Drop support for EOL Python 2.6
Improve sundry doc and README bits
2019-03-06 08:48:31 +00:00

30 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2019/03/06 08:48:31 adam Exp $
DISTNAME= tldextract-2.2.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= net python
MASTER_SITES= ${MASTER_SITE_PYPI:=t/tldextract/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/john-kurkowski/tldextract
COMMENT= Accurately separate the TLD from the registered domain and subdomains
LICENSE= modified-bsd
DEPENDS+= ${PYPKGPREFIX}-idna-[0-9]*:../../www/py-idna
DEPENDS+= ${PYPKGPREFIX}-requests>=2.1.0:../../devel/py-requests
DEPENDS+= ${PYPKGPREFIX}-requests-file>=1.4:../../devel/py-requests-file
DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
TEST_DEPENDS+= ${PYPKGPREFIX}-responses-[0-9]*:../../net/py-responses
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
USE_LANGUAGES= # none
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} tldextract tldextract-${PYVERSSUFFIX} || ${TRUE}
do-test:
cd ${WRKSRC} && py.test-${PYVERSSUFFIX} tests
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"