nixpkgs/pkgs/development/python-modules/ephem/default.nix

39 lines
753 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, glibcLocales
, pytest
}:
buildPythonPackage rec {
pname = "ephem";
2022-01-03 20:36:07 +00:00
version = "4.1.3";
2021-11-29 16:49:28 +00:00
format = "setuptools";
src = fetchPypi {
inherit pname version;
2022-01-03 20:36:07 +00:00
sha256 = "sha256-f6GGhZgbpSjt1QQFKp1SEqCapb8VwRpzTtxqhuiotWo=";
};
checkInputs = [
glibcLocales
pytest
];
# JPLTest uses assets not distributed in package
checkPhase = ''
LC_ALL="en_US.UTF-8" pytest --pyargs ephem.tests -k "not JPLTest"
'';
2021-11-29 16:49:28 +00:00
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 ];
};
}