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

68 lines
1.2 KiB
Nix

{
lib,
aiohttp,
buildPythonPackage,
emoji,
fetchFromGitHub,
freezegun,
tzdata,
pdoc,
pydantic,
pytest-aiohttp,
pytest-benchmark,
pytestCheckHook,
python-dateutil,
setuptools,
syrupy,
}:
buildPythonPackage (finalAttrs: {
pname = "ical";
version = "14.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "allenporter";
repo = "ical";
tag = finalAttrs.version;
hash = "sha256-Rl/tEOG+n7MCd/kHmoluBS4YI8+Jd4pxgvmUyp9eOag=";
};
build-system = [ setuptools ];
dependencies = [
python-dateutil
tzdata
pydantic
];
optional-dependencies = {
async = [ aiohttp ];
};
nativeCheckInputs = [
emoji
freezegun
pdoc
pytest-aiohttp
pytest-benchmark
pytestCheckHook
syrupy
]
++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies;
pytestFlags = [ "--benchmark-disable" ];
__darwinAllowLocalNetworking = true;
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 ];
};
})