python310Packages.lunarcalendar: init at 0.0.9

This commit is contained in:
TomaSajt 2023-07-12 13:34:11 +02:00
parent 4df9ed01d3
commit 7845969b44
No known key found for this signature in database
GPG key ID: F011163C050122A1
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,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 ];
};
}

View file

@ -6023,6 +6023,8 @@ self: super: with self; {
luhn = callPackage ../development/python-modules/luhn { };
lunarcalendar = callPackage ../development/python-modules/lunarcalendar { };
luqum = callPackage ../development/python-modules/luqum { };
luxor = callPackage ../development/python-modules/luxor { };