Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 26 lines 713 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, isPy3k 2, glibcLocales, pytest }: 3 4buildPythonPackage rec { 5 pname = "ephem"; 6 version = "3.7.7.0"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "0dj4kk325b01s7q1zkwpm9rrzl7n1jf7fr92wcajjhc5kx14hwb0"; 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 stdenv.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}