Files
nixpkgs/pkgs/development/python-modules/ical/default.nix

56 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
emoji,
fetchFromGitHub,
freezegun,
tzdata,
pydantic,
pytest-benchmark,
pytestCheckHook,
python-dateutil,
setuptools,
syrupy,
}:
buildPythonPackage (finalAttrs: {
pname = "ical";
version = "13.2.2";
pyproject = true;
src = fetchFromGitHub {
owner = "allenporter";
repo = "ical";
tag = finalAttrs.version;
hash = "sha256-7EKnwfXRU7hzFVre5EVil8/HN+XnCh2qz0BF69sLDHc=";
};
build-system = [ setuptools ];
dependencies = [
python-dateutil
tzdata
pydantic
];
nativeCheckInputs = [
emoji
freezegun
pytest-benchmark
pytestCheckHook
syrupy
];
pytestFlags = [ "--benchmark-disable" ];
pythonImportsCheck = [ "ical" ];
meta = {
description = "Library for handling iCalendar";
homepage = "https://github.com/allenporter/ical";
changelog = "https://github.com/allenporter/ical/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dotlambda ];
};
})