Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 25 lines 639 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, pytz, requests, pytest }: 2 3buildPythonPackage rec { 4 pname = "astral"; 5 version = "1.10.1"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "d2a67243c4503131c856cafb1b1276de52a86e5b8a1d507b7e08bee51cb67bf1"; 10 }; 11 12 propagatedBuildInputs = [ pytz requests ]; 13 14 checkInputs = [ pytest ]; 15 checkPhase = '' 16 py.test -m "not webtest" 17 ''; 18 19 meta = with stdenv.lib; { 20 description = "Calculations for the position of the sun and the moon"; 21 homepage = https://github.com/sffjunkie/astral/; 22 license = licenses.asl20; 23 maintainers = with maintainers; [ flokli ]; 24 }; 25}