9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
71 lines
1.2 KiB
Nix
71 lines
1.2 KiB
Nix
{ lib
|
|
, python-dateutil
|
|
, buildPythonPackage
|
|
, emoji
|
|
, fetchFromGitHub
|
|
, freezegun
|
|
, tzdata
|
|
, py
|
|
, pyparsing
|
|
, pydantic
|
|
, pytest-asyncio
|
|
, pytest-benchmark
|
|
, pytest-golden
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pythonRelaxDepsHook
|
|
, pyyaml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ical";
|
|
version = "4.5.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "allenporter";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-UcuJ23yzpRHDUFlwov692UyLXP/9Qb4F+IJIszo12/M=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"tzdata"
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
emoji
|
|
python-dateutil
|
|
tzdata
|
|
pydantic
|
|
pyparsing
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
freezegun
|
|
py
|
|
pytest-asyncio
|
|
pytest-benchmark
|
|
pytest-golden
|
|
pytestCheckHook
|
|
pyyaml
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"ical"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library for handling iCalendar";
|
|
homepage = "https://github.com/allenporter/ical";
|
|
changelog = "https://github.com/allenporter/ical/releases/tag/${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|