Merge pull request #129011 from fabaff/bump-ephem

python3Packages.ephem: 3.7.7.1 -> 4.0.0.2
This commit is contained in:
Fabian Affolter 2021-07-05 23:40:36 +02:00 committed by GitHub
commit 54054030a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,26 +1,36 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k
, glibcLocales, pytest }:
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, glibcLocales
, pytest
}:
buildPythonPackage rec {
pname = "ephem";
version = "3.7.7.1";
version = "4.0.0.2";
src = fetchPypi {
inherit pname version;
sha256 = "36b51a8dc7cfdeb456dd6b8ab811accab8341b2d562ee3c6f4c86f6d3dbb984e";
sha256 = "sha256-0D3nPr9qkWgdWX61tdQ7z28MZ+KSu6L5qXRzS08VdX4=";
};
patchFlags = [ "-p0" ];
checkInputs = [ pytest glibcLocales ];
checkInputs = [
glibcLocales
pytest
];
# JPLTest uses assets not distributed in package
checkPhase = ''
LC_ALL="en_US.UTF-8" py.test --pyargs ephem.tests -k "not JPLTest"
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://pypi.python.org/pypi/ephem/";
license = licenses.lgpl3;
homepage = "https://github.com/brandon-rhodes/pyephem";
license = licenses.mit;
maintainers = with maintainers; [ chrisrosset ];
};
}