2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-09-25 04:45:31 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, convertdate
|
2023-03-04 12:14:45 +00:00
|
|
|
, fetchFromGitHub
|
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
|
2023-03-04 12:14:45 +00:00
|
|
|
, python-dateutil
|
2021-04-08 16:26:57 +00:00
|
|
|
, pythonOlder
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "holidays";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "0.21";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dr-prodigy";
|
|
|
|
repo = "python-holidays";
|
|
|
|
rev = "refs/tags/v.${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-acV/m4orkOEbON7C4ThGvaQtTMpp4c8FNesC7UepJFc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
convertdate
|
2021-07-04 02:40:35 +00:00
|
|
|
python-dateutil
|
2021-02-05 17:12:51 +00:00
|
|
|
hijri-converter
|
2020-09-25 04:45:31 +00:00
|
|
|
korean-lunar-calendar
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-04-08 16:26:57 +00:00
|
|
|
pytestCheckHook
|
2021-02-05 17:12:51 +00:00
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +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
|
|
|
description = "Generate and work with holidays in Python";
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "https://github.com/dr-prodigy/python-holidays";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/dr-prodigy/python-holidays/releases/tag/v.${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|