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

27 lines
667 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi, isPy27, pytz, requests, pytest }:
2017-11-23 22:53:28 +00:00
buildPythonPackage rec {
pname = "astral";
2020-06-06 06:46:57 +00:00
version = "2.2";
disabled = isPy27;
2017-11-23 22:53:28 +00:00
src = fetchPypi {
inherit pname version;
2020-06-06 06:46:57 +00: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 ];
};
}