Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475{ lib, buildPythonPackage, chameleon, fetchFromGitHub, gitpython, importlib-metadata, lingva, numpy, polib, pytest-cov-stub, pytestCheckHook, python-dateutil, setuptools,}:
buildPythonPackage (finalAttrs: { pname = "holidays"; version = "0.107"; pyproject = true;
src = fetchFromGitHub { owner = "vacanza"; repo = "python-holidays"; tag = "v${finalAttrs.version}"; hash = "sha256-DPp8gejmRsOYhIT0BZRrYsFHEQGpyWbH+K6BpWEecTE="; };
build-system = [ setuptools
# l10n lingva chameleon gitpython polib ];
postPatch = '' patchShebangs scripts/l10n/*.py
substituteInPlace holidays/version.py \ --replace-fail 'version("holidays")' '"${finalAttrs.version}"' '';
preBuild = '' # make l10n ./scripts/l10n/generate_po_files.py ./scripts/l10n/generate_mo_files.py '';
dependencies = [ python-dateutil ];
nativeCheckInputs = [ importlib-metadata numpy polib pytest-cov-stub pytestCheckHook ];
pythonImportsCheck = [ "holidays" ];
meta = { description = "Generate and work with holidays in Python"; homepage = "https://github.com/vacanza/python-holidays"; changelog = "https://github.com/vacanza/holidays/blob/${finalAttrs.src.tag}/CHANGES.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab jluttine ]; };})