Skip to content

Commit

Permalink
ephem: init at 3.7.6.0 (#29710)
Browse files Browse the repository at this point in the history
* ephem: init at 3.7.6.0

Compute positions of the planets and stars

* Update default.nix

* python.pkgs.ephem: enable tests for python2 at least
  • Loading branch information
chrisrosset authored and Mic92 committed Sep 24, 2017
1 parent 9ba024f commit 799d284
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/maintainers.nix
Expand Up @@ -107,6 +107,7 @@
choochootrain = "Hurshal Patel <hurshal@imap.cc>";
chris-martin = "Chris Martin <ch.martin@gmail.com>";
chrisjefferson = "Christopher Jefferson <chris@bubblescope.net>";
chrisrosset = "Christopher Rosset <chris@rosset.org.uk>";
christopherpoole = "Christopher Mark Poole <mail@christopherpoole.net>";
ciil = "Simon Lackerbauer <simon@lackerbauer.com>";
ckampka = "Christian Kampka <christian@kampka.net>";
Expand Down
32 changes: 32 additions & 0 deletions pkgs/development/python-modules/ephem/default.nix
@@ -0,0 +1,32 @@
{ stdenv, buildPythonPackage, fetchPypi, isPy3k
, glibcLocales, pytest }:

buildPythonPackage rec {
pname = "ephem";
name = "${pname}-${version}";
version = "3.7.6.0";

src = fetchPypi {
inherit pname version;
sha256 = "7a4c82b1def2893e02aec0394f108d24adb17bd7b0ca6f4bc78eb7120c0212ac";
};

patchFlags = "-p0";
checkInputs = [ pytest glibcLocales ];
# JPLTest uses assets not distributed in package
checkPhase = ''
LC_ALL="en_US.UTF-8" py.test --pyargs ephem.tests -k "not JPLTest"
'';

# Unfortunately, the tests are broken for Python 3 in 3.7.6.0. They have been
# fixed in https://github.com/brandon-rhodes/pyephem/commit/c8633854e2d251a198b0f701d0528b508baa2411
# but there has not been a new release since then.
doCheck = !isPy3k;

meta = with stdenv.lib; {
description = "Compute positions of the planets and stars";
homepage = https://pypi.python.org/pypi/ephem/;
license = licenses.lgpl3;
maintainers = with maintainers; [ chrisrosset ];
};
}
1 change: 1 addition & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -26694,6 +26694,7 @@ EOF

parse-type = callPackage ../development/python-modules/parse-type { };

ephem = callPackage ../development/python-modules/ephem { };
});

in fix' (extends overrides packages)

0 comments on commit 799d284

Please sign in to comment.