1{ lib
2, buildPythonPackage
3, convertdate
4, fetchFromGitHub
5, hijri-converter
6, korean-lunar-calendar
7, pytestCheckHook
8, python-dateutil
9, pythonOlder
10}:
11
12buildPythonPackage rec {
13 pname = "holidays";
14 version = "0.26";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "dr-prodigy";
21 repo = "python-holidays";
22 rev = "refs/tags/v.${version}";
23 hash = "sha256-4kRIhIjOQB23ihZBs6J6/ZriLiMD87m/xOqMXga5Ypw=";
24 };
25
26 propagatedBuildInputs = [
27 convertdate
28 python-dateutil
29 hijri-converter
30 korean-lunar-calendar
31 ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [
38 "holidays"
39 ];
40
41 disabledTests = [
42 # Failure starting with 0.24
43 "test_l10n"
44 ];
45
46 meta = with lib; {
47 description = "Generate and work with holidays in Python";
48 homepage = "https://github.com/dr-prodigy/python-holidays";
49 changelog = "https://github.com/dr-prodigy/python-holidays/releases/tag/v.${version}";
50 license = licenses.mit;
51 maintainers = with maintainers; [ jluttine ];
52 };
53}
54