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