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
|
|
|
|
, 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-10-09 19:29:22 +00:00
|
|
|
version = "5.1.0";
|
2022-11-04 12:27:35 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
disabled = pythonOlder "3.10";
|
2022-11-04 12:27:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "allenporter";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-ffNgYtwErt9tzfDWQnt0h7QHQL+gMvFpP8zH6FSoHEM=";
|
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
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|