2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
glibcLocales,
|
|
|
|
pytest,
|
2021-07-14 22:03:04 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ephem";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "4.1.5";
|
2021-12-26 17:43:05 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-10-19 13:55:26 +00:00
|
|
|
hash = "sha256-DGSoqkAVdMdZQgRbmvcNFlbhTFNmFRwMu0AMvu3CNio=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-07-14 22:03:04 +00:00
|
|
|
glibcLocales
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# JPLTest uses assets not distributed in package
|
|
|
|
checkPhase = ''
|
2021-07-14 22:03:04 +00:00
|
|
|
LC_ALL="en_US.UTF-8" pytest --pyargs ephem.tests -k "not JPLTest"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "ephem" ];
|
2021-07-14 22:03:04 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Compute positions of the planets and stars";
|
2021-07-14 22:03:04 +00:00
|
|
|
homepage = "https://github.com/brandon-rhodes/pyephem";
|
|
|
|
license = licenses.mit;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ chrisrosset ];
|
|
|
|
};
|
|
|
|
}
|