Files
nixpkgs/pkgs/development/python-modules/ical/default.nix
2025-06-09 06:54:21 +00:00

59 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
emoji,
fetchFromGitHub,
freezegun,
tzdata,
pyparsing,
pydantic,
pytest-benchmark,
pytestCheckHook,
pythonOlder,
python-dateutil,
setuptools,
syrupy,
}:
buildPythonPackage rec {
pname = "ical";
version = "10.0.1";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "allenporter";
repo = "ical";
tag = version;
hash = "sha256-KUrsg42sNOtsmpS7rTPm1uiFU+jXbb25/Auk8Utp8Ks=";
};
build-system = [ setuptools ];
dependencies = [
python-dateutil
tzdata
pydantic
pyparsing
];
nativeCheckInputs = [
emoji
freezegun
pytest-benchmark
pytestCheckHook
syrupy
];
pythonImportsCheck = [ "ical" ];
meta = {
description = "Library for handling iCalendar";
homepage = "https://github.com/allenporter/ical";
changelog = "https://github.com/allenporter/ical/releases/tag/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dotlambda ];
};
}