2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
2017-09-24 11:17:24 +01:00
|
|
|
, glibcLocales, pytest }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ephem";
|
2020-05-09 11:01:47 +01:00
|
|
|
version = "3.7.7.1";
|
2017-09-24 11:17:24 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 11:01:47 +01:00
|
|
|
sha256 = "36b51a8dc7cfdeb456dd6b8ab811accab8341b2d562ee3c6f4c86f6d3dbb984e";
|
2017-09-24 11:17:24 +01:00
|
|
|
};
|
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
patchFlags = [ "-p0" ];
|
2017-09-24 11:17:24 +01:00
|
|
|
checkInputs = [ pytest glibcLocales ];
|
|
|
|
# JPLTest uses assets not distributed in package
|
|
|
|
checkPhase = ''
|
|
|
|
LC_ALL="en_US.UTF-8" py.test --pyargs ephem.tests -k "not JPLTest"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-09-24 11:17:24 +01:00
|
|
|
description = "Compute positions of the planets and stars";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pypi.python.org/pypi/ephem/";
|
2017-09-24 11:17:24 +01:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
maintainers = with maintainers; [ chrisrosset ];
|
|
|
|
};
|
|
|
|
}
|