Skip to content

Commit 799d284

Browse files
chrisrossetMic92
authored andcommittedSep 24, 2017
ephem: init at 3.7.6.0 (#29710)
* 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
1 parent 9ba024f commit 799d284

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed
 

‎lib/maintainers.nix

+1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
choochootrain = "Hurshal Patel <hurshal@imap.cc>";
108108
chris-martin = "Chris Martin <ch.martin@gmail.com>";
109109
chrisjefferson = "Christopher Jefferson <chris@bubblescope.net>";
110+
chrisrosset = "Christopher Rosset <chris@rosset.org.uk>";
110111
christopherpoole = "Christopher Mark Poole <mail@christopherpoole.net>";
111112
ciil = "Simon Lackerbauer <simon@lackerbauer.com>";
112113
ckampka = "Christian Kampka <christian@kampka.net>";
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{ stdenv, buildPythonPackage, fetchPypi, isPy3k
2+
, glibcLocales, pytest }:
3+
4+
buildPythonPackage rec {
5+
pname = "ephem";
6+
name = "${pname}-${version}";
7+
version = "3.7.6.0";
8+
9+
src = fetchPypi {
10+
inherit pname version;
11+
sha256 = "7a4c82b1def2893e02aec0394f108d24adb17bd7b0ca6f4bc78eb7120c0212ac";
12+
};
13+
14+
patchFlags = "-p0";
15+
checkInputs = [ pytest glibcLocales ];
16+
# JPLTest uses assets not distributed in package
17+
checkPhase = ''
18+
LC_ALL="en_US.UTF-8" py.test --pyargs ephem.tests -k "not JPLTest"
19+
'';
20+
21+
# Unfortunately, the tests are broken for Python 3 in 3.7.6.0. They have been
22+
# fixed in https://github.com/brandon-rhodes/pyephem/commit/c8633854e2d251a198b0f701d0528b508baa2411
23+
# but there has not been a new release since then.
24+
doCheck = !isPy3k;
25+
26+
meta = with stdenv.lib; {
27+
description = "Compute positions of the planets and stars";
28+
homepage = https://pypi.python.org/pypi/ephem/;
29+
license = licenses.lgpl3;
30+
maintainers = with maintainers; [ chrisrosset ];
31+
};
32+
}

‎pkgs/top-level/python-packages.nix

+1
Original file line numberDiff line numberDiff line change
@@ -26694,6 +26694,7 @@ EOF
2669426694

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

26697+
ephem = callPackage ../development/python-modules/ephem { };
2669726698
});
2669826699

2669926700
in fix' (extends overrides packages)

0 commit comments

Comments
 (0)
Please sign in to comment.