Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
702 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
buildPythonPackage,
fetchPypi,
pytest,
}:
buildPythonPackage rec {
pname = "ephem";
version = "4.2";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-PE/WT0U+j0DPhiQgpw2pWnG2SHrOdejgz4XXNwfbYGU=";
};
nativeCheckInputs = [
pytest
];
# JPLTest uses assets not distributed in package
checkPhase = ''
pytest --pyargs ephem.tests -k "not JPLTest"
'';
pythonImportsCheck = [ "ephem" ];
meta = with lib; {
description = "Compute positions of the planets and stars";
homepage = "https://github.com/brandon-rhodes/pyephem";
license = licenses.mit;
maintainers = with maintainers; [ chrisrosset ];
};
}