1{ lib
2, buildPythonPackage
3, convertdate
4, python-dateutil
5, fetchPypi
6, hijri-converter
7, korean-lunar-calendar
8, pytestCheckHook
9, pythonOlder
10}:
11
12buildPythonPackage rec {
13 pname = "holidays";
14 version = "0.17";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-nxa2Dwe+KgPKqj1sqLDWau6JkLcgag0TlM4x+tK0JC4=";
22 };
23
24 propagatedBuildInputs = [
25 convertdate
26 python-dateutil
27 hijri-converter
28 korean-lunar-calendar
29 ];
30
31 checkInputs = [
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [
36 "holidays"
37 ];
38
39 meta = with lib; {
40 description = "Generate and work with holidays in Python";
41 homepage = "https://github.com/dr-prodigy/python-holidays";
42 license = licenses.mit;
43 maintainers = with maintainers; [ jluttine ];
44 };
45}