2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, isPy27, pytz, requests, pytest, freezegun }:
|
2017-11-23 22:53:28 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "astral";
|
2020-06-06 07:46:57 +01:00
|
|
|
version = "2.2";
|
2020-06-16 21:30:52 +01:00
|
|
|
disabled = isPy27;
|
2017-11-23 22:53:28 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:46:57 +01:00
|
|
|
sha256 = "e41d9967d5c48be421346552f0f4dedad43ff39a83574f5ff2ad32b6627b6fbe";
|
2017-11-23 22:53:28 +00:00
|
|
|
};
|
|
|
|
|
2020-06-19 10:46:05 +01:00
|
|
|
propagatedBuildInputs = [ pytz requests freezegun ];
|
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
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-11-23 22:53:28 +00:00
|
|
|
description = "Calculations for the position of the sun and the moon";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/sffjunkie/astral/";
|
2017-11-23 22:53:28 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ flokli ];
|
|
|
|
};
|
|
|
|
}
|