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