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

56 lines
1010 B
Nix

{
lib,
buildPythonPackage,
emoji,
fetchFromGitHub,
freezegun,
tzdata,
pydantic,
pytest-benchmark,
pytestCheckHook,
python-dateutil,
setuptools,
syrupy,
}:
buildPythonPackage rec {
pname = "ical";
version = "11.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "allenporter";
repo = "ical";
tag = version;
hash = "sha256-NpE+YHVgaUBR9MzC+zXwqalCwSjF/f+NH/k0S/JusiI=";
};
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/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dotlambda ];
};
}