aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Rosset <chris@rosset.org.uk>2017-09-24 06:17:24 -0400
committerJรถrg Thalheim <Mic92@users.noreply.github.com>2017-09-24 11:17:24 +0100
commit799d28480bccf6ddd4e94ea3fe031aadda6ad087 (patch)
treeb1632681b06645207fbc0bda4d31c43131c4a228
parent9ba024f6d85cc9adfac9ceb58f3eed231feb2d62 (diff)
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
-rw-r--r--lib/maintainers.nix1
-rw-r--r--pkgs/development/python-modules/ephem/default.nix32
-rw-r--r--pkgs/top-level/python-packages.nix1
3 files changed, 34 insertions, 0 deletions
diff --git a/lib/maintainers.nix b/lib/maintainers.nix
index aba9eb0e2bc..ec0d49dd35d 100644
--- a/lib/maintainers.nix
+++ b/lib/maintainers.nix
@@ -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>";
diff --git a/pkgs/development/python-modules/ephem/default.nix b/pkgs/development/python-modules/ephem/default.nix
new file mode 100644
index 00000000000..231a52c9d7a
--- /dev/null
+++ b/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 ];
+ };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index e94da936af3..204b16b5879 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -26694,6 +26694,7 @@ EOF
parse-type = callPackage ../development/python-modules/parse-type { };
+ ephem = callPackage ../development/python-modules/ephem { };
});
in fix' (extends overrides packages)