2022-11-04 12:27:35 +00:00
|
|
|
{ lib
|
|
|
|
, python-dateutil
|
|
|
|
, buildPythonPackage
|
2022-12-17 10:02:37 +00:00
|
|
|
, emoji
|
2022-11-04 12:27:35 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, freezegun
|
|
|
|
, tzdata
|
2023-01-20 10:41:00 +00:00
|
|
|
, py
|
2022-11-04 12:27:35 +00:00
|
|
|
, pyparsing
|
|
|
|
, pydantic
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-benchmark
|
|
|
|
, pytest-golden
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2023-07-15 17:15:38 +00:00
|
|
|
, pythonRelaxDepsHook
|
2023-04-12 12:48:02 +00:00
|
|
|
, pyyaml
|
2022-11-04 12:27:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ical";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "4.5.4";
|
2022-11-04 12:27:35 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "allenporter";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-UcuJ23yzpRHDUFlwov692UyLXP/9Qb4F+IJIszo12/M=";
|
2022-11-04 12:27:35 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"tzdata"
|
|
|
|
];
|
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-12-17 10:02:37 +00:00
|
|
|
emoji
|
2022-11-04 12:27:35 +00:00
|
|
|
python-dateutil
|
|
|
|
tzdata
|
|
|
|
pydantic
|
|
|
|
pyparsing
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-11-04 12:27:35 +00:00
|
|
|
freezegun
|
2023-01-20 10:41:00 +00:00
|
|
|
py
|
2022-11-04 12:27:35 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytest-benchmark
|
|
|
|
pytest-golden
|
|
|
|
pytestCheckHook
|
2023-04-12 12:48:02 +00:00
|
|
|
pyyaml
|
2022-11-04 12:27:35 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|