depot/third_party/nixpkgs/pkgs/development/python-modules/lunarcalendar/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

42 lines
874 B
Nix

{
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 = "Lunar-Solar Converter, containing a number of lunar and solar festivals in China";
mainProgram = "lunar-find";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ tomasajt ];
};
}