depot/third_party/nixpkgs/pkgs/development/python-modules/ephem/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

38 lines
757 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, glibcLocales
, pytest
}:
buildPythonPackage rec {
pname = "ephem";
version = "4.1.5";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-DGSoqkAVdMdZQgRbmvcNFlbhTFNmFRwMu0AMvu3CNio=";
};
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 ];
};
}