2017-11-23 22:53:28 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pytz, pytest }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "astral";
|
2018-02-03 00:17:10 +00:00
|
|
|
version = "1.5";
|
2017-11-23 22:53:28 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-02-03 00:17:10 +00:00
|
|
|
sha256 = "527628fbfe90c1596c3950ff84ebd07ecc10c8fb1044c903a0519b5057700cb6";
|
2017-11-23 22:53:28 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|