2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-09-12 14:31:30 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, convertdate
|
2021-07-03 12:37:24 +01:00
|
|
|
, python-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
|
|
|
}:
|
2019-10-25 05:57:37 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "holidays";
|
2022-06-06 12:51:26 +01:00
|
|
|
version = "0.14.2";
|
2021-11-05 08:45:53 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-06-06 13:22:30 +01:00
|
|
|
disabled = pythonOlder "3.7";
|
2019-10-25 05:57:37 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-06-06 13:22:30 +01:00
|
|
|
hash = "sha256-DnD9F0gErqHIcLFRMZ+uvNXNsNlVt4IwQ04a/Rd4SY4=";
|
2019-10-25 05:57:37 +01:00
|
|
|
};
|
|
|
|
|
2020-09-12 14:31:30 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
convertdate
|
2021-07-03 12:37:24 +01:00
|
|
|
python-dateutil
|
2021-02-03 22:22:49 +00:00
|
|
|
hijri-converter
|
2020-09-12 14:31:30 +01:00
|
|
|
korean-lunar-calendar
|
|
|
|
];
|
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
|
|
|
];
|
|
|
|
|
2021-11-05 08:45:53 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"holidays"
|
|
|
|
];
|
2019-10-25 05:57:37 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-10-25 05:57:37 +01:00
|
|
|
description = "Generate and work with holidays in Python";
|
2021-11-05 08:45:53 +00:00
|
|
|
homepage = "https://github.com/dr-prodigy/python-holidays";
|
2019-10-25 05:57:37 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|