Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 26 lines 717 B view raw
1{ lib, buildPythonPackage, fetchPypi, isPy3k 2, glibcLocales, pytest }: 3 4buildPythonPackage rec { 5 pname = "ephem"; 6 version = "3.7.7.1"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "36b51a8dc7cfdeb456dd6b8ab811accab8341b2d562ee3c6f4c86f6d3dbb984e"; 11 }; 12 13 patchFlags = [ "-p0" ]; 14 checkInputs = [ pytest glibcLocales ]; 15 # JPLTest uses assets not distributed in package 16 checkPhase = '' 17 LC_ALL="en_US.UTF-8" py.test --pyargs ephem.tests -k "not JPLTest" 18 ''; 19 20 meta = with lib; { 21 description = "Compute positions of the planets and stars"; 22 homepage = "https://pypi.python.org/pypi/ephem/"; 23 license = licenses.lgpl3; 24 maintainers = with maintainers; [ chrisrosset ]; 25 }; 26}