Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / ephem / default.nix
blob3b9f4fba9f50571dbc0f0d3f626a092f8b60c6c2
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , glibcLocales
5 , pytest
6 }:
8 buildPythonPackage rec {
9   pname = "ephem";
10   version = "4.1.5";
11   format = "setuptools";
13   src = fetchPypi {
14     inherit pname version;
15     hash = "sha256-DGSoqkAVdMdZQgRbmvcNFlbhTFNmFRwMu0AMvu3CNio=";
16   };
18   nativeCheckInputs = [
19     glibcLocales
20     pytest
21   ];
23   # JPLTest uses assets not distributed in package
24   checkPhase = ''
25     LC_ALL="en_US.UTF-8" pytest --pyargs ephem.tests -k "not JPLTest"
26   '';
28   pythonImportsCheck = [
29     "ephem"
30   ];
32   meta = with lib; {
33     description = "Compute positions of the planets and stars";
34     homepage = "https://github.com/brandon-rhodes/pyephem";
35     license = licenses.mit;
36     maintainers = with maintainers; [ chrisrosset ];
37   };