nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 35 lines 702 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytest, 6}: 7 8buildPythonPackage rec { 9 pname = "ephem"; 10 version = "4.2.1"; 11 format = "setuptools"; 12 13 src = fetchPypi { 14 inherit pname version; 15 hash = "sha256-kgyzA2nHn94QiMIGDVVepfilD9yAqSZYMv1b8ZXPFH8="; 16 }; 17 18 nativeCheckInputs = [ 19 pytest 20 ]; 21 22 # JPLTest uses assets not distributed in package 23 checkPhase = '' 24 pytest --pyargs ephem.tests -k "not JPLTest" 25 ''; 26 27 pythonImportsCheck = [ "ephem" ]; 28 29 meta = { 30 description = "Compute positions of the planets and stars"; 31 homepage = "https://github.com/brandon-rhodes/pyephem"; 32 license = lib.licenses.mit; 33 maintainers = with lib.maintainers; [ chrisrosset ]; 34 }; 35}