2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-09-12 14:31:30 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, convertdate
|
|
|
|
, dateutil
|
2021-04-06 14:18:55 +01:00
|
|
|
, fetchPypi
|
2021-02-03 22:22:49 +00:00
|
|
|
, hijri-converter
|
2020-09-12 14:31:30 +01:00
|
|
|
, korean-lunar-calendar
|
2021-04-06 14:18:55 +01:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2020-09-12 14:31:30 +01:00
|
|
|
, six
|
|
|
|
}:
|
2019-10-25 05:57:37 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "holidays";
|
2021-04-06 14:18:55 +01:00
|
|
|
version = "0.11.1";
|
|
|
|
disabled = pythonOlder "3.6";
|
2019-10-25 05:57:37 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-06 14:18:55 +01:00
|
|
|
sha256 = "sha256-f6/YRvZ/Drfh+cGcOPSnlnvweu1d7S3XqKovk3sOoBs=";
|
2019-10-25 05:57:37 +01:00
|
|
|
};
|
|
|
|
|
2020-09-12 14:31:30 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
convertdate
|
|
|
|
dateutil
|
2021-02-03 22:22:49 +00:00
|
|
|
hijri-converter
|
2020-09-12 14:31:30 +01:00
|
|
|
korean-lunar-calendar
|
|
|
|
six
|
|
|
|
];
|
2021-02-03 22:22:49 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
2021-04-06 14:18:55 +01:00
|
|
|
pytestCheckHook
|
2021-02-03 22:22:49 +00:00
|
|
|
];
|
|
|
|
|
2020-09-12 14:31:30 +01:00
|
|
|
pythonImportsCheck = [ "holidays" ];
|
2019-10-25 05:57:37 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-03-09 15:21:26 +00:00
|
|
|
homepage = "https://github.com/dr-prodigy/python-holidays";
|
2019-10-25 05:57:37 +01:00
|
|
|
description = "Generate and work with holidays in Python";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|