2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-09-25 04:45:31 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, convertdate
|
2021-07-04 02:40:35 +00:00
|
|
|
, python-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-10-01 09:20:50 +00:00
|
|
|
version = "0.11.3.1";
|
2021-04-08 16:26:57 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-01 09:20:50 +00:00
|
|
|
sha256 = "4855afe0ebf428efbcf848477828b889f8515be7f4f15ae26682919369d92774";
|
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
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|