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

26 lines
638 B
Nix
Raw Normal View History

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";
2020-06-06 07:46:57 +01:00
version = "2.2";
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
};
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/";
2017-11-23 22:53:28 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ flokli ];
};
}