On Fri, 5 May 2017 22:21:07 +0200, Joerg Jung <m...@umaxx.net> wrote:

> Hi,
> 
> please find attached a port for py-freezegun, a test dependency for
> the upcoming khal port.
> 
> $ cat pkg/DESCR
> FreezeGun is a library that allows your python tests to travel
> through time by mocking the datetime module.
> 
> 
> Comments? OK to import?
> 
> Thanks,
> Regards,
> Joerg

Here's a diff to remove HOMEPAGE as it seems nonexistent and MODPY_PI
sets up a HOMEPAGE, and make tests work (there's one failing but
shrug).

With that, ok danj@

--- Makefile.orig       Tue May 23 20:37:18 2017
+++ Makefile    Tue May 23 20:39:54 2017
@@ -8,8 +8,6 @@ PKGNAME =               py-freezegun-${MODPY_EGG_VERSION}
 
 CATEGORIES =           devel
 
-HOMEPAGE =             https://freezegun.readthedocs.org
-
 MAINTAINER =           Joerg Jung <j...@openbsd.org>
 
 # Apache 2.0
@@ -30,9 +28,8 @@ TEST_DEPENDS =                ${RUN_DEPENDS} \
 FLAVORS =              python3
 FLAVOR ?=
 
-# todo: fix tests
-NO_TEST =              yes
-#do-test:
-#                      cd ${WRKSRC} && ${LOCALBASE}/bin/nosetests-3
+do-test:
+       cd ${WRKSRC} && ${LOCALBASE}/bin/nosetests${MODPY_BIN_SUFFIX} tests/*.py
+
 
 .include <bsd.port.mk>

Reply via email to