From 8933b930a26d10aa657221ddf0e53f7a8f755eb4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 2 Jul 2021 20:05:03 +0200 Subject: [PATCH] python3Packages.ephem: 3.7.7.1 -> 4.0.0.2 --- .../python-modules/ephem/default.nix | 28 +++++++++++++------ 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/ephem/default.nix b/pkgs/development/python-modules/ephem/default.nix index c0d77c297481..a859f509f347 100644 --- a/pkgs/development/python-modules/ephem/default.nix +++ b/pkgs/development/python-modules/ephem/default.nix @@ -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 ]; }; }