On 2018/01/17 00:06, Joerg Jung wrote:
> Hi,
> 
> please find attached a new port for astro/py-astral.
> 
>    $ cat pkg/DESCR
>    This is 'astral' a Python module which calculates
> 
>        * Times for various positions of the sun: dawn, sunrise, solar noon,
>          sunset, dusk, solar elevation, solar azimuth and rahukaalam.
>        * The phase of the moon.
> 
> This port is a dependency for the upcoming homeassistant port.
> 
> Please test and comment. OK to import?
> 
> Regards,
> Joerg

tz is a RUN_DEPENDS, not just a BUILD_DEPENDS, otherwise OK.



>>> import astral
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/astral.py", line 75, in <module>
    import pytz
ModuleNotFoundError: No module named 'pytz'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/site-packages/astral.py", line 77, in <module>
    raise ImportError(('The astral module requires the '
ImportError: The astral module requires the pytz module to be available.

Reply via email to