at 23.11-beta 40 lines 835 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4 5, python-dateutil 6, ephem 7, pytz 8 9, pytestCheckHook 10}: 11 12buildPythonPackage rec { 13 pname = "lunarcalendar"; 14 version = "0.0.9"; 15 format = "setuptools"; 16 17 src = fetchFromGitHub { 18 owner = "wolfhong"; 19 repo = "LunarCalendar"; 20 rev = "885418ea1a2a90b7e0bbe758919af9987fb2863b"; 21 hash = "sha256-AhxCWWqCjlOroqs4pOSZTWoIQT8a1l/D2Rxuw1XUoU8="; 22 }; 23 24 propagatedBuildInputs = [ 25 python-dateutil 26 ephem 27 pytz 28 ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 pythonImportsCheck = [ "lunarcalendar" ]; 33 34 meta = { 35 homepage = "https://github.com/wolfhong/LunarCalendar"; 36 description = "A Lunar-Solar Converter, containing a number of lunar and solar festivals in China"; 37 license = lib.licenses.mit; 38 maintainers = with lib.maintainers; [ tomasajt ]; 39 }; 40}