33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
39 lines
759 B
Nix
39 lines
759 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, glibcLocales
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ephem";
|
|
version = "4.1.4";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-c6WfDSFi0WJFNcPDt1+VZVa9uyBV6vVUp77xR9P5x2A=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|