6d4aeb4377
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
50 lines
981 B
Nix
50 lines
981 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, convertdate
|
|
, python-dateutil
|
|
, fetchPypi
|
|
, hijri-converter
|
|
, korean-lunar-calendar
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "holidays";
|
|
version = "0.18";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-6U2dNTb/Gipw1tL1bLBV65qV0LmjpfuBuej5024zN4k=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
convertdate
|
|
python-dateutil
|
|
hijri-converter
|
|
korean-lunar-calendar
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"holidays"
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
"test/test_imports.py"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Generate and work with holidays in Python";
|
|
homepage = "https://github.com/dr-prodigy/python-holidays";
|
|
changelog = "https://github.com/dr-prodigy/python-holidays/releases/tag/v.${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jluttine ];
|
|
};
|
|
}
|