holidays 0.73__py3-none-any.whl → 0.75__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (251) hide show
  1. holidays/calendars/__init__.py +1 -1
  2. holidays/calendars/balinese_saka.py +1 -1
  3. holidays/calendars/hindu.py +26 -26
  4. holidays/calendars/islamic.py +161 -0
  5. holidays/calendars/thai.py +2 -2
  6. holidays/constants.py +9 -2
  7. holidays/countries/__init__.py +202 -176
  8. holidays/countries/afghanistan.py +2 -2
  9. holidays/countries/aland_islands.py +63 -0
  10. holidays/countries/albania.py +3 -3
  11. holidays/countries/algeria.py +3 -3
  12. holidays/countries/andorra.py +1 -1
  13. holidays/countries/angola.py +11 -11
  14. holidays/countries/anguilla.py +175 -0
  15. holidays/countries/antigua_and_barbuda.py +10 -10
  16. holidays/countries/argentina.py +107 -104
  17. holidays/countries/armenia.py +2 -2
  18. holidays/countries/aruba.py +7 -7
  19. holidays/countries/australia.py +18 -18
  20. holidays/countries/azerbaijan.py +14 -14
  21. holidays/countries/bahamas.py +9 -9
  22. holidays/countries/bahrain.py +3 -3
  23. holidays/countries/bangladesh.py +1 -1
  24. holidays/countries/barbados.py +7 -7
  25. holidays/countries/belarus.py +9 -9
  26. holidays/countries/belgium.py +3 -3
  27. holidays/countries/belize.py +3 -3
  28. holidays/countries/benin.py +199 -0
  29. holidays/countries/bermuda.py +152 -0
  30. holidays/countries/bolivia.py +8 -8
  31. holidays/countries/bosnia_and_herzegovina.py +4 -4
  32. holidays/countries/botswana.py +4 -4
  33. holidays/countries/brazil.py +4 -4
  34. holidays/countries/british_virgin_islands.py +205 -0
  35. holidays/countries/brunei.py +43 -43
  36. holidays/countries/bulgaria.py +3 -3
  37. holidays/countries/burkina_faso.py +1 -1
  38. holidays/countries/burundi.py +2 -2
  39. holidays/countries/cambodia.py +6 -6
  40. holidays/countries/cameroon.py +3 -3
  41. holidays/countries/canada.py +9 -9
  42. holidays/countries/chad.py +2 -2
  43. holidays/countries/chile.py +8 -8
  44. holidays/countries/china.py +31 -31
  45. holidays/countries/cocos_islands.py +6 -6
  46. holidays/countries/colombia.py +7 -7
  47. holidays/countries/congo.py +2 -2
  48. holidays/countries/cook_islands.py +148 -0
  49. holidays/countries/costa_rica.py +1 -1
  50. holidays/countries/croatia.py +1 -1
  51. holidays/countries/cuba.py +9 -9
  52. holidays/countries/curacao.py +2 -2
  53. holidays/countries/cyprus.py +1 -1
  54. holidays/countries/czechia.py +3 -3
  55. holidays/countries/denmark.py +2 -2
  56. holidays/countries/djibouti.py +1 -1
  57. holidays/countries/dominica.py +11 -11
  58. holidays/countries/dominican_republic.py +2 -2
  59. holidays/countries/ecuador.py +1 -1
  60. holidays/countries/egypt.py +1 -1
  61. holidays/countries/el_salvador.py +3 -3
  62. holidays/countries/equatorial_guinea.py +150 -0
  63. holidays/countries/eswatini.py +3 -3
  64. holidays/countries/ethiopia.py +6 -6
  65. holidays/countries/fiji.py +12 -12
  66. holidays/countries/finland.py +200 -36
  67. holidays/countries/france.py +1 -1
  68. holidays/countries/french_southern_territories.py +1 -5
  69. holidays/countries/gabon.py +4 -4
  70. holidays/countries/georgia.py +2 -2
  71. holidays/countries/germany.py +3 -3
  72. holidays/countries/ghana.py +2 -2
  73. holidays/countries/greece.py +1 -1
  74. holidays/countries/greenland.py +2 -2
  75. holidays/countries/grenada.py +1 -1
  76. holidays/countries/guatemala.py +4 -4
  77. holidays/countries/guernsey.py +31 -31
  78. holidays/countries/guinea.py +6 -6
  79. holidays/countries/guyana.py +279 -0
  80. holidays/countries/haiti.py +3 -3
  81. holidays/countries/honduras.py +2 -2
  82. holidays/countries/hongkong.py +4 -4
  83. holidays/countries/hungary.py +98 -16
  84. holidays/countries/iceland.py +1 -1
  85. holidays/countries/india.py +8 -8
  86. holidays/countries/indonesia.py +46 -46
  87. holidays/countries/iran.py +2 -2
  88. holidays/countries/ireland.py +1 -1
  89. holidays/countries/italy.py +1 -1
  90. holidays/countries/ivory_coast.py +6 -6
  91. holidays/countries/jamaica.py +1 -1
  92. holidays/countries/japan.py +1 -1
  93. holidays/countries/jersey.py +23 -23
  94. holidays/countries/jordan.py +3 -3
  95. holidays/countries/kazakhstan.py +45 -45
  96. holidays/countries/kenya.py +13 -13
  97. holidays/countries/kuwait.py +4 -4
  98. holidays/countries/kyrgyzstan.py +1 -1
  99. holidays/countries/laos.py +7 -7
  100. holidays/countries/latvia.py +2 -2
  101. holidays/countries/lesotho.py +2 -2
  102. holidays/countries/liechtenstein.py +1 -1
  103. holidays/countries/lithuania.py +1 -1
  104. holidays/countries/macau.py +19 -19
  105. holidays/countries/madagascar.py +2 -2
  106. holidays/countries/malawi.py +2 -2
  107. holidays/countries/malaysia.py +6 -6
  108. holidays/countries/maldives.py +3 -3
  109. holidays/countries/malta.py +6 -6
  110. holidays/countries/marshall_islands.py +2 -2
  111. holidays/countries/mauritania.py +2 -2
  112. holidays/countries/mexico.py +4 -4
  113. holidays/countries/micronesia.py +205 -0
  114. holidays/countries/monaco.py +1 -1
  115. holidays/countries/montenegro.py +3 -3
  116. holidays/countries/morocco.py +4 -4
  117. holidays/countries/namibia.py +85 -26
  118. holidays/countries/nauru.py +129 -0
  119. holidays/countries/nepal.py +16 -16
  120. holidays/countries/netherlands.py +1 -1
  121. holidays/countries/new_zealand.py +2 -2
  122. holidays/countries/nicaragua.py +2 -2
  123. holidays/countries/niger.py +320 -0
  124. holidays/countries/nigeria.py +1 -1
  125. holidays/countries/north_macedonia.py +268 -16
  126. holidays/countries/norway.py +38 -5
  127. holidays/countries/oman.py +12 -12
  128. holidays/countries/pakistan.py +7 -7
  129. holidays/countries/palau.py +7 -7
  130. holidays/countries/panama.py +5 -5
  131. holidays/countries/papua_new_guinea.py +15 -15
  132. holidays/countries/paraguay.py +7 -7
  133. holidays/countries/peru.py +1 -1
  134. holidays/countries/philippines.py +18 -18
  135. holidays/countries/poland.py +1 -1
  136. holidays/countries/portugal.py +5 -5
  137. holidays/countries/qatar.py +7 -7
  138. holidays/countries/romania.py +1 -1
  139. holidays/countries/russia.py +28 -28
  140. holidays/countries/saint_kitts_and_nevis.py +16 -16
  141. holidays/countries/saint_lucia.py +3 -3
  142. holidays/countries/samoa.py +3 -3
  143. holidays/countries/sao_tome_and_principe.py +2 -2
  144. holidays/countries/saudi_arabia.py +3 -3
  145. holidays/countries/senegal.py +193 -0
  146. holidays/countries/seychelles.py +15 -15
  147. holidays/countries/sierra_leone.py +5 -5
  148. holidays/countries/singapore.py +12 -8
  149. holidays/countries/slovakia.py +1 -1
  150. holidays/countries/slovenia.py +3 -3
  151. holidays/countries/solomon_islands.py +220 -0
  152. holidays/countries/south_africa.py +4 -4
  153. holidays/countries/south_korea.py +7 -7
  154. holidays/countries/spain.py +18 -18
  155. holidays/countries/sri_lanka.py +26 -26
  156. holidays/countries/suriname.py +5 -5
  157. holidays/countries/svalbard_and_jan_mayen.py +47 -0
  158. holidays/countries/sweden.py +2 -2
  159. holidays/countries/switzerland.py +1 -1
  160. holidays/countries/taiwan.py +41 -41
  161. holidays/countries/tanzania.py +15 -15
  162. holidays/countries/thailand.py +85 -85
  163. holidays/countries/timor_leste.py +106 -104
  164. holidays/countries/togo.py +3 -3
  165. holidays/countries/tonga.py +16 -16
  166. holidays/countries/trinidad_and_tobago.py +4 -4
  167. holidays/countries/tunisia.py +1 -1
  168. holidays/countries/turkey.py +4 -4
  169. holidays/countries/turks_and_caicos_islands.py +134 -0
  170. holidays/countries/tuvalu.py +7 -7
  171. holidays/countries/ukraine.py +51 -51
  172. holidays/countries/united_arab_emirates.py +22 -22
  173. holidays/countries/united_kingdom.py +2 -2
  174. holidays/countries/united_states.py +39 -39
  175. holidays/countries/uruguay.py +6 -6
  176. holidays/countries/uzbekistan.py +3 -3
  177. holidays/countries/vanuatu.py +2 -2
  178. holidays/countries/vatican_city.py +11 -11
  179. holidays/countries/venezuela.py +8 -8
  180. holidays/countries/vietnam.py +7 -7
  181. holidays/countries/yemen.py +207 -0
  182. holidays/countries/zambia.py +3 -3
  183. holidays/deprecations/v1_incompatibility.py +1 -1
  184. holidays/financial/__init__.py +5 -5
  185. holidays/financial/brasil_bolsa_balcao.py +9 -9
  186. holidays/financial/european_central_bank.py +3 -3
  187. holidays/financial/ice_futures_europe.py +2 -2
  188. holidays/financial/ny_stock_exchange.py +4 -5
  189. holidays/groups/__init__.py +1 -1
  190. holidays/groups/chinese.py +3 -3
  191. holidays/groups/christian.py +4 -4
  192. holidays/groups/international.py +9 -9
  193. holidays/groups/islamic.py +16 -6
  194. holidays/groups/sinhala.py +12 -12
  195. holidays/groups/thai.py +3 -3
  196. holidays/locale/ar/LC_MESSAGES/YE.mo +0 -0
  197. holidays/locale/en_AI/LC_MESSAGES/AI.mo +0 -0
  198. holidays/locale/en_BM/LC_MESSAGES/BM.mo +0 -0
  199. holidays/locale/en_CK/LC_MESSAGES/CK.mo +0 -0
  200. holidays/locale/en_FM/LC_MESSAGES/FM.mo +0 -0
  201. holidays/locale/en_GY/LC_MESSAGES/GY.mo +0 -0
  202. holidays/locale/en_NA/LC_MESSAGES/NA.mo +0 -0
  203. holidays/locale/en_NR/LC_MESSAGES/NR.mo +0 -0
  204. holidays/locale/en_TC/LC_MESSAGES/TC.mo +0 -0
  205. holidays/locale/en_US/LC_MESSAGES/AI.mo +0 -0
  206. holidays/locale/en_US/LC_MESSAGES/AX.mo +0 -0
  207. holidays/locale/en_US/LC_MESSAGES/BJ.mo +0 -0
  208. holidays/locale/en_US/LC_MESSAGES/BM.mo +0 -0
  209. holidays/locale/en_US/LC_MESSAGES/CK.mo +0 -0
  210. holidays/locale/en_US/LC_MESSAGES/FI.mo +0 -0
  211. holidays/locale/en_US/LC_MESSAGES/FM.mo +0 -0
  212. holidays/locale/en_US/LC_MESSAGES/GQ.mo +0 -0
  213. holidays/locale/en_US/LC_MESSAGES/GY.mo +0 -0
  214. holidays/locale/en_US/LC_MESSAGES/MK.mo +0 -0
  215. holidays/locale/en_US/LC_MESSAGES/NA.mo +0 -0
  216. holidays/locale/en_US/LC_MESSAGES/NE.mo +0 -0
  217. holidays/locale/en_US/LC_MESSAGES/NR.mo +0 -0
  218. holidays/locale/en_US/LC_MESSAGES/SJ.mo +0 -0
  219. holidays/locale/en_US/LC_MESSAGES/SN.mo +0 -0
  220. holidays/locale/en_US/LC_MESSAGES/TC.mo +0 -0
  221. holidays/locale/en_US/LC_MESSAGES/TH.mo +0 -0
  222. holidays/locale/en_US/LC_MESSAGES/VG.mo +0 -0
  223. holidays/locale/en_US/LC_MESSAGES/YE.mo +0 -0
  224. holidays/locale/en_VG/LC_MESSAGES/VG.mo +0 -0
  225. holidays/locale/es/LC_MESSAGES/GQ.mo +0 -0
  226. holidays/locale/fi/LC_MESSAGES/AX.mo +0 -0
  227. holidays/locale/fi/LC_MESSAGES/FI.mo +0 -0
  228. holidays/locale/fr_BJ/LC_MESSAGES/BJ.mo +0 -0
  229. holidays/locale/fr_NE/LC_MESSAGES/NE.mo +0 -0
  230. holidays/locale/fr_SN/LC_MESSAGES/SN.mo +0 -0
  231. holidays/locale/mk/LC_MESSAGES/MK.mo +0 -0
  232. holidays/locale/no/LC_MESSAGES/SJ.mo +0 -0
  233. holidays/locale/sv_FI/LC_MESSAGES/AX.mo +0 -0
  234. holidays/locale/sv_FI/LC_MESSAGES/FI.mo +0 -0
  235. holidays/locale/th/LC_MESSAGES/AX.mo +0 -0
  236. holidays/locale/th/LC_MESSAGES/FI.mo +0 -0
  237. holidays/locale/th/LC_MESSAGES/SJ.mo +0 -0
  238. holidays/locale/uk/LC_MESSAGES/AX.mo +0 -0
  239. holidays/locale/uk/LC_MESSAGES/FI.mo +0 -0
  240. holidays/locale/uk/LC_MESSAGES/MK.mo +0 -0
  241. holidays/locale/uk/LC_MESSAGES/NA.mo +0 -0
  242. holidays/locale/uk/LC_MESSAGES/SJ.mo +0 -0
  243. holidays/locale/uk/LC_MESSAGES/TH.mo +0 -0
  244. holidays/registry.py +16 -0
  245. holidays/version.py +1 -1
  246. {holidays-0.73.dist-info → holidays-0.75.dist-info}/METADATA +121 -10
  247. {holidays-0.73.dist-info → holidays-0.75.dist-info}/RECORD +251 -192
  248. {holidays-0.73.dist-info → holidays-0.75.dist-info}/WHEEL +1 -1
  249. {holidays-0.73.dist-info → holidays-0.75.dist-info}/licenses/CONTRIBUTORS +5 -0
  250. {holidays-0.73.dist-info → holidays-0.75.dist-info}/licenses/LICENSE +0 -0
  251. {holidays-0.73.dist-info → holidays-0.75.dist-info}/top_level.txt +0 -0
@@ -10,7 +10,9 @@
10
10
  # Website: https://github.com/vacanza/holidays
11
11
  # License: MIT (see LICENSE file)
12
12
 
13
- from holidays.calendars.gregorian import JAN, DEC
13
+ from gettext import gettext as tr
14
+
15
+ from holidays.calendars.gregorian import JAN, FEB, MAR, SEP, OCT, NOV, DEC
14
16
  from holidays.groups import ChristianHolidays, InternationalHolidays, StaticHolidays
15
17
  from holidays.observed_holiday_base import ObservedHolidayBase, SUN_TO_NEXT_MON
16
18
 
@@ -19,71 +21,77 @@ class Namibia(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Sta
19
21
  """Namibia holidays.
20
22
 
21
23
  References:
22
- * <https://www.officeholidays.com/countries/namibia>
23
- * <https://www.timeanddate.com/holidays/namibia/>
24
- * <https://tinyurl.com/lacorg5835>
24
+ * [Public Holidays Act, 1990](https://web.archive.org/web/20250322163344/https://namiblii.org/akn/na/act/1990/26/eng@2004-12-17)
25
+ * [Public Holidays Amendment Act, 2004](https://web.archive.org/web/20221015121213/https://namiblii.org/akn/na/act/2004/16/eng@2004-12-17)
26
+ * [Genocide Remembrance Day](https://web.archive.org/web/20250126055207/https://namiblii.org/akn/na/officialGazette/government-gazette/2024-05-28/8373/eng@2024-05-28)
25
27
 
26
- As of 1991/2/1, whenever a public holiday falls on a Sunday, it rolls over to the monday,
27
- unless that monday is already a public holiday.
28
+ As of 1991/2/1, whenever a public holiday falls on a Sunday, it rolls over to the Monday,
29
+ unless that Monday is already a public holiday.
28
30
  Since the interval from 1991/1/1 to 1991/2/1 includes only New Year's Day, and it's a Tuesday,
29
31
  we can assume that the beginning is 1991.
30
32
  """
31
33
 
32
34
  country = "NA"
35
+ default_language = "en_NA"
33
36
  # %s (observed).
34
- observed_label = "%s (observed)"
35
- start_year = 1990
37
+ observed_label = tr("%s (observed)")
38
+ start_year = 1991
39
+ supported_languages = ("en_NA", "en_US", "uk")
36
40
 
37
41
  def __init__(self, *args, **kwargs):
38
42
  ChristianHolidays.__init__(self)
39
43
  InternationalHolidays.__init__(self)
40
44
  StaticHolidays.__init__(self, NamibiaStaticHolidays)
41
45
  kwargs.setdefault("observed_rule", SUN_TO_NEXT_MON)
42
- kwargs.setdefault("observed_since", 1991)
43
46
  super().__init__(*args, **kwargs)
44
47
 
45
48
  def _populate_public_holidays(self):
46
49
  # New Year's Day.
47
- self._add_observed(self._add_new_years_day("New Year's Day"))
50
+ self._add_observed(self._add_new_years_day(tr("New Year's Day")))
48
51
 
49
52
  # Independence Day.
50
- self._add_observed(self._add_holiday_mar_21("Independence Day"))
53
+ self._add_observed(self._add_holiday_mar_21(tr("Independence Day")))
51
54
 
52
55
  # Good Friday.
53
- self._add_good_friday("Good Friday")
56
+ self._add_good_friday(tr("Good Friday"))
54
57
 
55
58
  # Easter Monday.
56
- self._add_easter_monday("Easter Monday")
59
+ self._add_easter_monday(tr("Easter Monday"))
57
60
 
58
61
  # Workers' Day.
59
- self._add_observed(self._add_labor_day("Workers' Day"))
62
+ self._add_observed(self._add_labor_day(tr("Workers' Day")))
60
63
 
61
64
  # Cassinga Day.
62
- self._add_observed(self._add_holiday_may_4("Cassinga Day"))
65
+ self._add_observed(self._add_holiday_may_4(tr("Cassinga Day")))
63
66
 
64
67
  # Africa Day.
65
- self._add_observed(self._add_africa_day("Africa Day"))
68
+ self._add_observed(self._add_africa_day(tr("Africa Day")))
69
+
70
+ if self._year >= 2025:
71
+ # Genocide Remembrance Day.
72
+ self._add_holiday_may_28(tr("Genocide Remembrance Day"))
66
73
 
67
74
  # Ascension Day.
68
- self._add_ascension_thursday("Ascension Day")
75
+ self._add_ascension_thursday(tr("Ascension Day"))
69
76
 
70
77
  # Heroes' Day.
71
- self._add_observed(self._add_holiday_aug_26("Heroes' Day"))
78
+ self._add_observed(self._add_holiday_aug_26(tr("Heroes' Day")))
72
79
 
73
- # http://www.lac.org.na/laws/2004/3348.pdf
74
80
  self._add_observed(
75
81
  self._add_holiday_sep_10(
76
- "Day of the Namibian Women and International Human Rights Day"
82
+ # Day of the Namibian Women and International Human Rights Day.
83
+ tr("Day of the Namibian Women and International Human Rights Day")
77
84
  if self._year >= 2005
78
- else "International Human Rights Day"
85
+ # International Human Rights Day.
86
+ else tr("International Human Rights Day")
79
87
  )
80
88
  )
81
89
 
82
90
  # Christmas Day.
83
- self._add_christmas_day("Christmas Day")
91
+ self._add_christmas_day(tr("Christmas Day"))
84
92
 
85
93
  # Family Day.
86
- self._add_observed(self._add_christmas_day_two("Family Day"))
94
+ self._add_observed(self._add_christmas_day_two(tr("Family Day")))
87
95
 
88
96
 
89
97
  class NA(Namibia):
@@ -95,8 +103,59 @@ class NAM(Namibia):
95
103
 
96
104
 
97
105
  class NamibiaStaticHolidays:
106
+ """Namibia special holidays.
107
+
108
+ References:
109
+ * [March 1, 1994](https://web.archive.org/web/20241210145818/https://namiblii.org/akn/na/officialGazette/government-gazette/1994-02-15/797/eng@1994-02-15)
110
+ * [December 7, 1994](https://web.archive.org/web/20250613113650/https://namiblii.org/akn/na/officialGazette/government-gazette/1994-11-30/987/eng@1994-11-30)
111
+ * [October 24, 1995](https://web.archive.org/web/20250613184422/https://namiblii.org/akn/na/officialGazette/government-gazette/1995-10-20/1178/eng@1995-10-20)
112
+ * [September 26, 1997](https://web.archive.org/web/20250613172016/https://namiblii.org/akn/na/officialGazette/government-gazette/1997-09-25/1690/eng@1997-09-25)
113
+ * [November 30, 1998](https://web.archive.org/web/20250613184549/https://namiblii.org/akn/na/officialGazette/government-gazette/1998-11-06/1988/eng@1998-11-06)
114
+ * [November 30, 1999](https://web.archive.org/web/20241012184236/https://namiblii.org/akn/na/officialGazette/government-gazette/1999-10-08/2202/eng@1999-10-08)
115
+ * [Y2K changeover](https://web.archive.org/web/20250613145912/https://namiblii.org/akn/na/officialGazette/government-gazette/1999-11-22/2234/eng@1999-11-22)
116
+ * [November 28, 2014](https://web.archive.org/web/20250613184051/https://namiblii.org/akn/na/officialGazette/government-gazette/2014-11-07/5609/eng@2014-11-07)
117
+ * [November 27, 2015](https://web.archive.org/web/20250613184258/https://namiblii.org/akn/na/officialGazette/government-gazette/2015-11-26/5885/eng@2015-11-26)
118
+ * [November 27, 2019](https://web.archive.org/web/20241112233422/https://namiblii.org/akn/na/officialGazette/government-gazette/2019-09-30/7008/eng@2019-09-30)
119
+ * [November 25, 2020](https://web.archive.org/web/20250613112403/https://namiblii.org/akn/na/officialGazette/government-gazette/2020-11-19/7394/eng@2020-11-19)
120
+ * [February 25, 2024](https://web.archive.org/web/20241203060851/https://namiblii.org/akn/na/officialGazette/government-gazette/2024-02-20/8312/eng@2024-02-20)
121
+ * [November 27, 2024](https://web.archive.org/web/20250514020246/https://namiblii.org/akn/na/officialGazette/government-gazette/2024-09-26/8454/eng@2024-09-26)
122
+ * [March 1, 2025](https://web.archive.org/web/20250613172517/https://namiblii.org/akn/na/officialGazette/government-gazette/2025-02-14/8577/eng@2025-02-14)
123
+ """
124
+
125
+ # Y2K changeover.
126
+ y2k_changeover = tr("Y2K changeover")
127
+
128
+ # General Election Day.
129
+ general_election_day = tr("General Election Day")
130
+
131
+ # Regional Election Day.
132
+ regional_election_day = tr("Regional Election Day")
133
+
98
134
  special_public_holidays = {
99
- # https://gazettes.africa/archive/na/1999/na-government-gazette-dated-1999-11-22-no-2234.pdf
100
- 1999: (DEC, 31, "Y2K changeover"),
101
- 2000: (JAN, 3, "Y2K changeover"),
135
+ 1994: (
136
+ # Walvis Bay Reintegration Day.
137
+ (MAR, 1, tr("Walvis Bay Reintegration Day")),
138
+ (DEC, 7, general_election_day),
139
+ ),
140
+ # Public Holiday.
141
+ 1995: (OCT, 24, tr("Public Holiday")),
142
+ # Day of Mourning for Honourable Moses Garoeb.
143
+ 1997: (SEP, 26, tr("Day of Mourning for Honourable Moses Garoeb")),
144
+ 1998: (NOV, 30, regional_election_day),
145
+ 1999: (
146
+ (NOV, 30, general_election_day),
147
+ (DEC, 31, y2k_changeover),
148
+ ),
149
+ 2000: (JAN, 3, y2k_changeover),
150
+ 2014: (NOV, 28, general_election_day),
151
+ 2015: (NOV, 27, regional_election_day),
152
+ 2019: (NOV, 27, general_election_day),
153
+ 2020: (NOV, 25, regional_election_day),
154
+ 2024: (
155
+ # Burial ceremony of Dr. Hage Gottfried Geingob.
156
+ (FEB, 25, tr("Burial ceremony of Dr. Hage Gottfried Geingob")),
157
+ (NOV, 27, general_election_day),
158
+ ),
159
+ # Burial ceremony of Dr. Sam Shafiishuna Nujoma.
160
+ 2025: (MAR, 1, tr("Burial ceremony of Dr. Sam Shafiishuna Nujoma")),
102
161
  }
@@ -0,0 +1,129 @@
1
+ # holidays
2
+ # --------
3
+ # A fast, efficient Python library for generating country, province and state
4
+ # specific sets of holidays on the fly. It aims to make determining whether a
5
+ # specific date is a holiday as fast and flexible as possible.
6
+ #
7
+ # Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
8
+ # dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
9
+ # ryanss <ryanssdev@icloud.com> (c) 2014-2017
10
+ # Website: https://github.com/vacanza/holidays
11
+ # License: MIT (see LICENSE file)
12
+
13
+ from gettext import gettext as tr
14
+
15
+ from holidays.groups import ChristianHolidays, InternationalHolidays
16
+ from holidays.observed_holiday_base import (
17
+ ObservedHolidayBase,
18
+ SAT_SUN_TO_NEXT_MON,
19
+ SAT_SUN_TO_NEXT_MON_TUE,
20
+ )
21
+
22
+
23
+ class Nauru(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
24
+ """Nauru holidays.
25
+
26
+ References:
27
+ * <https://en.wikipedia.org/wiki/Public_holidays_in_Nauru>
28
+ * [Public Service Act 2016](https://web.archive.org/web/20250613095858/https://ronlaw.gov.nr/assets/docs/acts/2016/Public%20Service%20Act%202016_serv4.pdf)
29
+ * [Nauru's Online Legal Database](https://web.archive.org/web/20250501021029/https://ronlaw.gov.nr/)
30
+ * <https://web.archive.org/web/20250408012244/https://www.timeanddate.com/holidays/nauru/>
31
+
32
+ Gazettes:
33
+ * [Public Holidays 2019](https://web.archive.org/web/20250613095031/https://ronlaw.gov.nr/assets/docs/gazettes/2018/11/Gazette%20No.%20175%20(28%20November%202018).pdf)
34
+ * [Public Holidays 2021](https://web.archive.org/web/20250613102242/https://ronlaw.gov.nr/assets/docs/gazettes/2020/12/Gazette%20No.%20227%20(21%20December%202020).pdf)
35
+ * [Public Holidays 2022](https://web.archive.org/web/20250613102128/https://ronlaw.gov.nr/assets/docs/gazettes/2022/01/Gazette%20No.%207%20(6%20January%202022).pdf)
36
+ * [Public Holidays 2023](https://web.archive.org/web/20250613101855/https://ronlaw.gov.nr/assets/docs/gazettes/2022/12/Gazette%20No.%20330%20(30%20December%202022).pdf)
37
+ * [Public Holidays 2024](https://web.archive.org/web/20250613094703/https://ronlaw.gov.nr/assets/docs/gazettes/2024/01/Nauru%20Government%20Gazette,%20No.%2014%20(15%20January%202024).pdf)
38
+ * [RONPHOS Handover Day 2018](https://web.archive.org/web/20250613095226/https://ronlaw.gov.nr/assets/docs/gazettes/2018/06/Gazette%20No.%20102%20(29%20June%202018).pdf)
39
+ * [Ibumin Earoeni Day 2019](https://web.archive.org/web/20250613095413/https://ronlaw.gov.nr/assets/docs/gazettes/2019/08/Gazette%20No.%20139%20(12%20August%202019).pdf)
40
+ * [Sir Hammer DeRoburt Day 2020](https://web.archive.org/web/20250614102647/https://ronlaw.gov.nr/assets/docs/gazettes/2020/09/Gazette%20No.%20171%20(10%20September%202020).pdf)
41
+ """
42
+
43
+ country = "NR"
44
+ default_language = "en_NR"
45
+ # %s (observed).
46
+ observed_label = tr("%s (observed)")
47
+ supported_languages = ("en_NR", "en_US")
48
+ # Nauru gained independence on January 31, 1968.
49
+ start_year = 1969
50
+
51
+ def __init__(self, *args, **kwargs):
52
+ ChristianHolidays.__init__(self)
53
+ InternationalHolidays.__init__(self)
54
+ kwargs.setdefault("observed_rule", SAT_SUN_TO_NEXT_MON)
55
+ super().__init__(*args, **kwargs)
56
+
57
+ def _populate_public_holidays(self):
58
+ # New Year's Day.
59
+ self._add_observed(self._add_new_years_day(tr("New Year's Day")))
60
+
61
+ self._add_observed(
62
+ # Independence Day.
63
+ self._add_holiday_jan_31(tr("Independence Day")),
64
+ rule=SAT_SUN_TO_NEXT_MON_TUE,
65
+ )
66
+
67
+ self._add_observed(
68
+ # Day following Independence Day.
69
+ self._add_holiday_feb_1(tr("Day following Independence Day")),
70
+ rule=SAT_SUN_TO_NEXT_MON_TUE,
71
+ )
72
+
73
+ if self._year >= 2019:
74
+ # International Women's Day.
75
+ self._add_observed(self._add_womens_day(tr("International Women's Day")))
76
+
77
+ # Good Friday.
78
+ self._add_good_friday(tr("Good Friday"))
79
+
80
+ # Easter Monday.
81
+ self._add_easter_monday(tr("Easter Monday"))
82
+
83
+ # Easter Tuesday.
84
+ self._add_easter_tuesday(tr("Easter Tuesday"))
85
+
86
+ # Constitution Day.
87
+ self._add_observed(self._add_holiday_may_17(tr("Constitution Day")))
88
+
89
+ if self._year >= 2018:
90
+ # RONPHOS Handover.
91
+ self._add_observed(self._add_holiday_jul_1(tr("RONPHOS Handover")))
92
+
93
+ if self._year >= 2019:
94
+ # Ibumin Earoeni Day.
95
+ self._add_observed(self._add_holiday_aug_19(tr("Ibumin Earoeni Day")))
96
+
97
+ if self._year >= 2001:
98
+ self._add_observed(
99
+ self._add_holiday_sep_25(
100
+ # Sir Hammer DeRoburt Day.
101
+ tr("Sir Hammer DeRoburt Day")
102
+ if self._year >= 2020
103
+ # National Youth Day.
104
+ else tr("National Youth Day")
105
+ )
106
+ )
107
+
108
+ # Angam Day.
109
+ self._add_observed(self._add_holiday_oct_26(tr("Angam Day")))
110
+
111
+ self._add_observed(
112
+ # Christmas Day.
113
+ self._add_christmas_day(tr("Christmas Day")),
114
+ rule=SAT_SUN_TO_NEXT_MON_TUE,
115
+ )
116
+
117
+ self._add_observed(
118
+ # Day following Christmas.
119
+ self._add_christmas_day_two(tr("Day following Christmas")),
120
+ rule=SAT_SUN_TO_NEXT_MON_TUE,
121
+ )
122
+
123
+
124
+ class NR(Nauru):
125
+ pass
126
+
127
+
128
+ class NRU(Nauru):
129
+ pass
@@ -35,15 +35,15 @@ class Nepal(
35
35
 
36
36
  References:
37
37
  * <https://en.wikipedia.org/wiki/Public_holidays_in_Nepal>
38
- * <https://narayanilawfirm.org.np/list-of-public-holidays-in-nepal-2079/>
39
- * <https://www.timeanddate.com/holidays/nepal/>
40
- * <https://kathmandupost.com/national/2018/03/29/government-trims-public-holidays-by-22-days>
41
- * <https://kathmandupost.com/national/2021/02/13/two-years-after-shortening-public-holiday-list-government-starts-adding-to-it-again>
42
- * <https://english.hamropatro.com/nepali-public-holidays>
43
- * <https://english.hamropatro.com/calendar>
44
- * <https://www.ashesh.com.np/nepali-calendar/>
45
- * <https://www.bolpatra.gov.np/egp/openDateConverter>
46
- * <https://www.moha.gov.np/en/page/holidays>
38
+ * <https://web.archive.org/web/20250422191700/https://narayanilawfirm.org.np/list-of-public-holidays-in-nepal-2079/>
39
+ * <https://web.archive.org/web/20250131082346/https://www.timeanddate.com/holidays/nepal/>
40
+ * <https://web.archive.org/web/20240911172745/https://kathmandupost.com/national/2018/03/29/government-trims-public-holidays-by-22-days>
41
+ * <https://web.archive.org/web/20250419211438/https://kathmandupost.com/national/2021/02/13/two-years-after-shortening-public-holiday-list-government-starts-adding-to-it-again>
42
+ * <https://web.archive.org/web/20250316094224/https://english.hamropatro.com/nepali-public-holidays>
43
+ * <https://web.archive.org/web/20250527164012/https://english.hamropatro.com/calendar>
44
+ * <https://web.archive.org/web/20250322000610/https://www.ashesh.com.np/nepali-calendar/>
45
+ * <https://web.archive.org/web/20250117021312/https://www.bolpatra.gov.np/egp/openDateConverter>
46
+ * <https://web.archive.org/web/20241013164133/https://www.moha.gov.np/en/page/holidays>
47
47
  """
48
48
 
49
49
  country = "NP"
@@ -52,7 +52,7 @@ class Nepal(
52
52
  start_year = 2010
53
53
  supported_categories = (PUBLIC, WORKDAY)
54
54
 
55
- def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
55
+ def __init__(self, *args, islamic_show_estimated: bool = True, **kwargs):
56
56
  """
57
57
  Args:
58
58
  islamic_show_estimated:
@@ -410,12 +410,12 @@ class NepalStaticHolidays:
410
410
  """Nepal special holidays.
411
411
 
412
412
  References:
413
- * [Death of Krishna Prasad Bhattarai](https://myrepublica.nagariknetwork.com/news/27618/)
414
- * [Death of Sushil Koirala](https://kathmandupost.com/miscellaneous/2016/02/09/cabinet-decision-koirala-to-be-honoured-with-state-funeral)
415
- * [Crash of Yeti Airlines Flight 691](https://edition.cnn.com/2023/01/15/asia/nepal-yeti-airlines-crash-intl-hnk/index.html)
416
- * [People's War Day Instituted](https://kathmandupost.com/national/2023/02/12/government-announces-public-holiday-on-monday-to-mark-people-s-war-day)
417
- * [People's War Day Annulled](https://kathmandupost.com/national/2023/12/29/supreme-court-annuls-public-holiday-on-people-s-war-day)
418
- * [Death of Subas Chandra Nembang](https://en.nepalkhabar.com/news/detail/6023/)
413
+ * [Death of Krishna Prasad Bhattarai](https://web.archive.org/web/20250527164153/https://myrepublica.nagariknetwork.com/news/27618/)
414
+ * [Death of Sushil Koirala](https://web.archive.org/web/20250527164210/https://kathmandupost.com/miscellaneous/2016/02/09/cabinet-decision-koirala-to-be-honoured-with-state-funeral)
415
+ * [Crash of Yeti Airlines Flight 691](https://web.archive.org/web/20250123204057/https://edition.cnn.com/2023/01/15/asia/nepal-yeti-airlines-crash-intl-hnk/index.html)
416
+ * [People's War Day Instituted](https://web.archive.org/web/20241211215602/https://kathmandupost.com/national/2023/02/12/government-announces-public-holiday-on-monday-to-mark-people-s-war-day)
417
+ * [People's War Day Annulled](https://web.archive.org/web/20240111230228/https://kathmandupost.com/national/2023/12/29/supreme-court-annuls-public-holiday-on-people-s-war-day)
418
+ * [Death of Subas Chandra Nembang](https://web.archive.org/web/20241214193305/https://en.nepalkhabar.com/news/detail/6023/)
419
419
  """
420
420
 
421
421
  # Day of National Mourning.
@@ -25,7 +25,7 @@ class Netherlands(HolidayBase, ChristianHolidays, InternationalHolidays):
25
25
  References:
26
26
  * <https://en.wikipedia.org/wiki/Public_holidays_in_the_Netherlands>
27
27
  * <https://nl.wikipedia.org/wiki/Feestdagen_in_Nederland>
28
- * <http://www.iamsterdam.com/en/plan-your-trip/practical-info/public-holidays>
28
+ * <https://web.archive.org/web/20250427131819/https://www.iamsterdam.com/en/plan-your-trip/practical-info/public-holidays>
29
29
  """
30
30
 
31
31
  country = "NL"
@@ -50,7 +50,7 @@ class NewZealand(ObservedHolidayBase, ChristianHolidays, InternationalHolidays,
50
50
  "WKO", # Waikato (Waikato).
51
51
  "WTC", # West Coast (Te Tai o Poutini).
52
52
  # Subregions:
53
- # https://www.govt.nz/browse/work/public-holidays-and-work/public-holidays-and-anniversary-dates/
53
+ # https://web.archive.org/web/20250415230521/https://www.govt.nz/browse/work/public-holidays-and-work/public-holidays-and-anniversary-dates/
54
54
  "South Canterbury",
55
55
  )
56
56
  subdivisions_aliases = {
@@ -175,7 +175,7 @@ class NewZealand(ObservedHolidayBase, ChristianHolidays, InternationalHolidays,
175
175
  elif self._year >= 1912:
176
176
  self._add_holiday_jun_3(name) # George V
177
177
  else:
178
- # http://paperspast.natlib.govt.nz/cgi-bin/paperspast?a=d&d=NZH19091110.2.67
178
+ # https://web.archive.org/web/20250427125629/https://paperspast.natlib.govt.nz/cgi-bin/paperspast?a=d&d=NZH19091110.2.67
179
179
  self._add_holiday_nov_9(name) # Edward VII
180
180
 
181
181
  # Matariki
@@ -21,8 +21,8 @@ class Nicaragua(HolidayBase, ChristianHolidays, InternationalHolidays):
21
21
 
22
22
  References:
23
23
  * <https://en.wikipedia.org/wiki/Public_holidays_in_Nicaragua>
24
- * <http://legislacion.asamblea.gob.ni/Normaweb.nsf/($All)/FA251B3C54F5BAEF062571C40055736C?OpenDocument>
25
- * <http://legislacion.asamblea.gob.ni/normaweb.nsf/($All)/3B28EC51ABE2787706258848005ADBB0?OpenDocument>
24
+ * <https://web.archive.org/web/20241102092432/http://legislacion.asamblea.gob.ni/Normaweb.nsf/($All)/FA251B3C54F5BAEF062571C40055736C?OpenDocument>
25
+ * <https://web.archive.org/web/20250427125556/http://legislacion.asamblea.gob.ni/normaweb.nsf/($All)/3B28EC51ABE2787706258848005ADBB0?OpenDocument>
26
26
  """
27
27
 
28
28
  country = "NI"