depot/third_party/nixpkgs/pkgs/development/python-modules/holidays/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

49 lines
1,011 B
Nix

{ lib
, buildPythonPackage
, convertdate
, fetchFromGitHub
, hijri-converter
, korean-lunar-calendar
, pytestCheckHook
, python-dateutil
, pythonOlder
}:
buildPythonPackage rec {
pname = "holidays";
version = "0.21.13";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "dr-prodigy";
repo = "python-holidays";
rev = "refs/tags/v.${version}";
hash = "sha256-acV/m4orkOEbON7C4ThGvaQtTMpp4c8FNesC7UepJFc=";
};
propagatedBuildInputs = [
convertdate
python-dateutil
hijri-converter
korean-lunar-calendar
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"holidays"
];
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 ];
};
}