38 lines
758 B
Nix
38 lines
758 B
Nix
|
{
|
||
|
lib,
|
||
|
buildPythonPackage,
|
||
|
fetchPypi,
|
||
|
glibcLocales,
|
||
|
pytest,
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "ephem";
|
||
|
version = "4.1.6";
|
||
|
format = "setuptools";
|
||
|
|
||
|
src = fetchPypi {
|
||
|
inherit pname version;
|
||
|
hash = "sha256-DtLk6nb52z7t4iBK2rivPxcIIBx8BO6FEecQpUymQl8=";
|
||
|
};
|
||
|
|
||
|
nativeCheckInputs = [
|
||
|
glibcLocales
|
||
|
pytest
|
||
|
];
|
||
|
|
||
|
# JPLTest uses assets not distributed in package
|
||
|
checkPhase = ''
|
||
|
LC_ALL="en_US.UTF-8" 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 ];
|
||
|
};
|
||
|
}
|