git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.ephem: 3.7.7.1 -> 4.0.0.2
commit8933b930a26d10aa657221ddf0e53f7a8f755eb4 authorFabian Affolter <mail@fabian-affolter.ch> dateFri 2 Jul 2021, 20:05 (5 years ago) parentf75e2a6
1 file changed+19−9
pkgs/development/python-modules/ephem/default.nix+19−9
pkgs/development/python-modules/ephem/default.nix+19−9
@@ -1,26 +1,36 @@
1−{ lib, buildPythonPackage, fetchPypi, isPy3k
2−, glibcLocales, pytest }:
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, isPy3k
5+, glibcLocales
6+, pytest
7+}:
38
49buildPythonPackage rec {
510 pname = "ephem";
6− version = "3.7.7.1";
11+ version = "4.0.0.2";
712
813 src = fetchPypi {
914 inherit pname version;
10− sha256 = "36b51a8dc7cfdeb456dd6b8ab811accab8341b2d562ee3c6f4c86f6d3dbb984e";
15+ sha256 = "sha256-0D3nPr9qkWgdWX61tdQ7z28MZ+KSu6L5qXRzS08VdX4=";
1116 };
1217
13− patchFlags = [ "-p0" ];
14− checkInputs = [ pytest glibcLocales ];
18+ checkInputs = [
19+ glibcLocales
20+ pytest
21+ ];
22+
1523 # JPLTest uses assets not distributed in package
1624 checkPhase = ''
17− LC_ALL="en_US.UTF-8" py.test --pyargs ephem.tests -k "not JPLTest"
25+ LC_ALL="en_US.UTF-8" pytest --pyargs ephem.tests -k "not JPLTest"
1826 '';
1927
28+ pythonImportsCheck = [ "ephem" ];
29+
2030 meta = with lib; {
2131 description = "Compute positions of the planets and stars";
22− homepage = "https://pypi.python.org/pypi/ephem/";
23− license = licenses.lgpl3;
32+ homepage = "https://github.com/brandon-rhodes/pyephem";
33+ license = licenses.mit;
2434 maintainers = with maintainers; [ chrisrosset ];
2535 };
2636}