nixpkgs/pkgs/development/python-modules/astral/default.nix

26 lines
628 B
Nix
Raw Normal View History

2017-11-23 22:53:28 +00:00
{ stdenv, buildPythonPackage, fetchPypi, pytz, pytest }:
buildPythonPackage rec {
pname = "astral";
2018-02-26 17:44:32 +00:00
version = "1.6";
2017-11-23 22:53:28 +00:00
src = fetchPypi {
inherit pname version;
2018-02-26 17:44:32 +00:00
sha256 = "874b397ddbf0a4c1d8d644b21c2481e8a96b61343f820ad52d8a322d61a15083";
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 ];
};
}