2018-02-26 23:22:09 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pytz, requests, pytest }:
|
2017-11-23 22:53:28 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "astral";
|
2019-02-14 07:37:10 +00:00
|
|
|
version = "1.10.1";
|
2017-11-23 22:53:28 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 07:37:10 +00:00
|
|
|
sha256 = "d2a67243c4503131c856cafb1b1276de52a86e5b8a1d507b7e08bee51cb67bf1";
|
2017-11-23 22:53:28 +00:00
|
|
|
};
|
|
|
|
|
2018-02-26 23:22:09 +00:00
|
|
|
propagatedBuildInputs = [ pytz requests ];
|
2017-11-23 22:53:28 +00:00
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
checkPhase = ''
|
2018-02-26 23:22:09 +00:00
|
|
|
py.test -m "not webtest"
|
2017-11-23 22:53:28 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|