mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 16:42:09 +00:00
37 lines
742 B
Nix
37 lines
742 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy3k
|
|
, glibcLocales
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ephem";
|
|
version = "4.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "c076794a511a34b5b91871c1cf6374dbc323ec69fca3f50eb718f20b171259d6";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|