Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

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

authored by Christopher Rosset and committed by Jörg Thalheim 799d2848 9ba024f6

+34
+1
lib/maintainers.nix
··· 107 choochootrain = "Hurshal Patel <hurshal@imap.cc>"; 108 chris-martin = "Chris Martin <ch.martin@gmail.com>"; 109 chrisjefferson = "Christopher Jefferson <chris@bubblescope.net>"; 110 christopherpoole = "Christopher Mark Poole <mail@christopherpoole.net>"; 111 ciil = "Simon Lackerbauer <simon@lackerbauer.com>"; 112 ckampka = "Christian Kampka <christian@kampka.net>";
··· 107 choochootrain = "Hurshal Patel <hurshal@imap.cc>"; 108 chris-martin = "Chris Martin <ch.martin@gmail.com>"; 109 chrisjefferson = "Christopher Jefferson <chris@bubblescope.net>"; 110 + chrisrosset = "Christopher Rosset <chris@rosset.org.uk>"; 111 christopherpoole = "Christopher Mark Poole <mail@christopherpoole.net>"; 112 ciil = "Simon Lackerbauer <simon@lackerbauer.com>"; 113 ckampka = "Christian Kampka <christian@kampka.net>";
+32
pkgs/development/python-modules/ephem/default.nix
···
··· 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 + }
+1
pkgs/top-level/python-packages.nix
··· 26694 26695 parse-type = callPackage ../development/python-modules/parse-type { }; 26696 26697 }); 26698 26699 in fix' (extends overrides packages)
··· 26694 26695 parse-type = callPackage ../development/python-modules/parse-type { }; 26696 26697 + ephem = callPackage ../development/python-modules/ephem { }; 26698 }); 26699 26700 in fix' (extends overrides packages)