849ee4d900
GitOrigin-RevId: 9e377a6ce42dccd9b624ae4ce8f978dc892ba0e2
43 lines
805 B
Nix
43 lines
805 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, convertdate
|
|
, dateutil
|
|
, fetchPypi
|
|
, hijri-converter
|
|
, korean-lunar-calendar
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "holidays";
|
|
version = "0.11.1";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-f6/YRvZ/Drfh+cGcOPSnlnvweu1d7S3XqKovk3sOoBs=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
convertdate
|
|
dateutil
|
|
hijri-converter
|
|
korean-lunar-calendar
|
|
six
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "holidays" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/dr-prodigy/python-holidays";
|
|
description = "Generate and work with holidays in Python";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jluttine ];
|
|
};
|
|
}
|