3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/ephem/default.nix
2021-11-30 18:52:49 -08:00

39 lines
753 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, glibcLocales
, pytest
}:
buildPythonPackage rec {
pname = "ephem";
version = "4.1.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-26ngXHjOkQrnWgY1GlWSR5GRqNxXCsDNbRinfpgTiHM=";
};
checkInputs = [
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 ];
};
}