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