depot/third_party/nixpkgs/pkgs/development/python-modules/holidays/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

50 lines
987 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
];
nativeCheckInputs = [
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 ];
};
}