45 lines
833 B
Nix
45 lines
833 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, convertdate
|
|
, python-dateutil
|
|
, fetchPypi
|
|
, hijri-converter
|
|
, korean-lunar-calendar
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "holidays";
|
|
version = "0.16";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-HX9P1rGYApj7uzMWsNV/pvFbUxMHTNrMEqOrk788pc0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
convertdate
|
|
python-dateutil
|
|
hijri-converter
|
|
korean-lunar-calendar
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"holidays"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Generate and work with holidays in Python";
|
|
homepage = "https://github.com/dr-prodigy/python-holidays";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jluttine ];
|
|
};
|
|
}
|