nixpkgs/pkgs/development/python-modules/astral/default.nix
R. RyanTM 42c2c7bb2f python36Packages.astral: 1.6.1 -> 1.7.1
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/python3.6-astral/versions
2018-11-09 00:10:00 -08:00

28 lines
704 B
Nix

{ stdenv, buildPythonPackage, fetchPypi, pytz, requests, pytest }:
buildPythonPackage rec {
pname = "astral";
version = "1.7.1";
src = fetchPypi {
inherit pname version;
sha256 = "01raz1c29v08f05l395v1hxllad35m5ld1jj51knb53c0396y248";
};
propagatedBuildInputs = [ pytz requests ];
checkInputs = [ pytest ];
checkPhase = ''
# https://github.com/sffjunkie/astral/pull/13
touch src/test/.api_key
py.test -m "not webtest"
'';
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 ];
};
}