2017-11-23 23:53:28 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pytz, pytest }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "astral";
|
2018-02-03 01:17:10 +01:00
|
|
|
version = "1.5";
|
2017-11-23 23:53:28 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-02-03 01:17:10 +01:00
|
|
|
sha256 = "527628fbfe90c1596c3950ff84ebd07ecc10c8fb1044c903a0519b5057700cb6";
|
2017-11-23 23:53:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pytz ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
checkPhase = ''
|
|
|
|
py.test -k "not test_GoogleLocator"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Calculations for the position of the sun and the moon";
|
|
|
|
homepage = https://github.com/sffjunkie/astral/;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ flokli ];
|
|
|
|
};
|
|
|
|
}
|