1{ lib, buildPythonPackage, fetchPypi, isPy27, pytz, requests, pytest, freezegun }:
2
3buildPythonPackage rec {
4 pname = "astral";
5 version = "2.2";
6 disabled = isPy27;
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "e41d9967d5c48be421346552f0f4dedad43ff39a83574f5ff2ad32b6627b6fbe";
11 };
12
13 propagatedBuildInputs = [ pytz requests freezegun ];
14
15 checkInputs = [ pytest ];
16 checkPhase = ''
17 py.test -m "not webtest"
18 '';
19
20 meta = with lib; {
21 description = "Calculations for the position of the sun and the moon";
22 homepage = "https://github.com/sffjunkie/astral/";
23 license = licenses.asl20;
24 maintainers = with maintainers; [ flokli ];
25 };
26}