depot/third_party/nixpkgs/pkgs/development/python-modules/holidays/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

54 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, convertdate
, fetchFromGitHub
, hijri-converter
, korean-lunar-calendar
, pytestCheckHook
, python-dateutil
, pythonOlder
}:
buildPythonPackage rec {
pname = "holidays";
version = "0.29";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "dr-prodigy";
repo = "python-holidays";
rev = "refs/tags/v.${version}";
hash = "sha256-ijhqu0LzQzpjDSe9ZjNhgdjq/DJuD7oVbRTLX97nGHM=";
};
propagatedBuildInputs = [
convertdate
python-dateutil
hijri-converter
korean-lunar-calendar
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"holidays"
];
disabledTests = [
# Failure starting with 0.24
"test_l10n"
];
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 ];
};
}