Edit

IABSD.fr/ports/databases/py-mongo/Makefile

Branch :

  • Show log

    Commit

  • Author : sthen
    Date : 2025-10-17 07:36:19
    Hash : e0779785
    Message : update to py3-mongo-4.15.3

  • databases/py-mongo/Makefile
  • COMMENT=	Python driver for mongodb
    
    MODPY_DISTV =	4.15.3
    DISTNAME=	pymongo-${MODPY_DISTV}
    PKGNAME=	py-${DISTNAME:S/py//}
    
    CATEGORIES=	databases devel
    
    HOMEPAGE=	https://github.com/mongodb/mongo-python-driver/
    
    # Apache 2.0
    PERMIT_PACKAGE=	Yes
    
    WANTLIB=	pthread ${MODPY_WANTLIB}
    
    MODPY_PI=	Yes
    
    MODULES=	lang/python
    MODPY_PYBUILD=	hatchling
    BUILD_DEPENDS=	devel/py-hatch-requirements-txt \
    		devel/py-setuptools
    RUN_DEPENDS=	net/py-dnspython
    TEST_DEPENDS=	devel/py-test-asyncio
    
    # unported dep
    MODPY_PYTEST_ARGS= --ignore test/mockupdb \
    		--ignore test/auth_aws/test_auth_aws.py
    
    # needs a running mongodb instance at 127.0.0.1:27017,
    # and increased kern.somaxconn, various missing files from the tar.gz
    # too it seems
    TEST_IS_INTERACTIVE= Yes
    
    .include <bsd.port.arch.mk>
    
    .if ${PROPERTIES:Mle}
    PKG_ARGS +=	-Dno_be=1
    .else
    PKG_ARGS +=	-Dno_be=0
    .endif
    
    .include <bsd.port.mk>