about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/lunarcalendar/default.nix
blob: e5233fec6cb7e8a82f392ebe308117b77ecc6937 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib
, buildPythonPackage
, fetchFromGitHub

, python-dateutil
, ephem
, pytz

, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "lunarcalendar";
  version = "0.0.9";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "wolfhong";
    repo = "LunarCalendar";
    rev = "885418ea1a2a90b7e0bbe758919af9987fb2863b";
    hash = "sha256-AhxCWWqCjlOroqs4pOSZTWoIQT8a1l/D2Rxuw1XUoU8=";
  };

  propagatedBuildInputs = [
    python-dateutil
    ephem
    pytz
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "lunarcalendar" ];

  meta = {
    homepage = "https://github.com/wolfhong/LunarCalendar";
    description = "A Lunar-Solar Converter, containing a number of lunar and solar festivals in China";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ tomasajt ];
  };
}