19.8.18: - Fix installation on systems that don't have UTF-8 as default encoding. - Remove superfluous print debugging output. 19.7.15: - Update to iso-codes 4.3. - Add support for ISO 639-5 (Language Families and Groups). - Drop support for Python 2. - Add `search_fuzzy()` function to the countries database. This allows for dealing with user searches that aren't really aware of ISO 3166 (so, like, actual human beings). A bit of character normalization and prioritizing matches between multiple criteria allows building somewhat reasonable suggestion/autocompletion lists. Caveat emptor: no attention has been paid to performance in this feature.
23 lines
647 B
Makefile
23 lines
647 B
Makefile
# $NetBSD: Makefile,v 1.6 2019/11/28 06:24:29 adam Exp $
|
|
|
|
DISTNAME= pycountry-19.8.18
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/^py//}
|
|
CATEGORIES= geography python
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pycountry/}
|
|
|
|
MAINTAINER= kamel.derouiche@gmail.com
|
|
HOMEPAGE= https://bitbucket.org/flyingcircus/pycountry
|
|
COMMENT= ISO country, subdivision, language, currency and script
|
|
LICENSE= gnu-lgpl-v2.1
|
|
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
|
|
|
|
USE_LANGUAGES= # none
|
|
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 27
|
|
|
|
do-test:
|
|
cd ${WRKSRC}/src/pycountry/tests && pytest-${PYVERSSUFFIX}
|
|
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|