Files
nixpkgs/pkgs/development/python-modules/ephem/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

36 lines
700 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytest,
}:
buildPythonPackage rec {
pname = "ephem";
version = "4.2";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-PE/WT0U+j0DPhiQgpw2pWnG2SHrOdejgz4XXNwfbYGU=";
};
nativeCheckInputs = [
pytest
];
# JPLTest uses assets not distributed in package
checkPhase = ''
pytest --pyargs ephem.tests -k "not JPLTest"
'';
pythonImportsCheck = [ "ephem" ];
meta = {
description = "Compute positions of the planets and stars";
homepage = "https://github.com/brandon-rhodes/pyephem";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ chrisrosset ];
};
}