2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-09-25 04:45:31 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, convertdate
|
|
|
|
, dateutil
|
2021-04-08 16:26:57 +00:00
|
|
|
, fetchPypi
|
2021-02-05 17:12:51 +00:00
|
|
|
, hijri-converter
|
2020-09-25 04:45:31 +00:00
|
|
|
, korean-lunar-calendar
|
2021-04-08 16:26:57 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2020-09-25 04:45:31 +00:00
|
|
|
, six
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "holidays";
|
2021-04-08 16:26:57 +00:00
|
|
|
version = "0.11.1";
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-08 16:26:57 +00:00
|
|
|
sha256 = "sha256-f6/YRvZ/Drfh+cGcOPSnlnvweu1d7S3XqKovk3sOoBs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
convertdate
|
|
|
|
dateutil
|
2021-02-05 17:12:51 +00:00
|
|
|
hijri-converter
|
2020-09-25 04:45:31 +00:00
|
|
|
korean-lunar-calendar
|
|
|
|
six
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
2021-04-08 16:26:57 +00:00
|
|
|
pytestCheckHook
|
2021-02-05 17:12:51 +00:00
|
|
|
];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
pythonImportsCheck = [ "holidays" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/dr-prodigy/python-holidays";
|
|
|
|
description = "Generate and work with holidays in Python";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|