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

27 lines
686 B
Nix
Raw Normal View History

{ 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";
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
};
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
'';
meta = with lib; {
2017-11-23 22:53:28 +00:00
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 ];
};
}