diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/lunarcalendar/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/lunarcalendar/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/lunarcalendar/default.nix b/nixpkgs/pkgs/development/python-modules/lunarcalendar/default.nix new file mode 100644 index 000000000000..e5233fec6cb7 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/lunarcalendar/default.nix @@ -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 ]; + }; +} |