2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
icalendar,
|
|
|
|
python-dateutil,
|
2024-09-19 14:19:46 +00:00
|
|
|
tzdata,
|
2024-06-05 15:53:02 +00:00
|
|
|
x-wr-timezone,
|
|
|
|
pytestCheckHook,
|
2024-09-19 14:19:46 +00:00
|
|
|
pytz,
|
2024-06-05 15:53:02 +00:00
|
|
|
restructuredtext-lint,
|
|
|
|
pygments,
|
2022-12-02 08:20:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "recurring-ical-events";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "3.3.0";
|
2022-12-02 08:20:57 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
pyproject = true;
|
2022-12-02 08:20:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "niccokunzmann";
|
|
|
|
repo = "python-recurring-ical-events";
|
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-1Ggxi61epge6Rxc/vJ7OuuNjjeaQYReEPeOZV8DLghk=";
|
2022-12-02 08:20:57 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
pythonRelaxDeps = [ "icalendar" ];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2022-12-02 08:20:57 +00:00
|
|
|
icalendar
|
|
|
|
python-dateutil
|
2024-09-19 14:19:46 +00:00
|
|
|
tzdata
|
2022-12-02 08:20:57 +00:00
|
|
|
x-wr-timezone
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-12-02 08:20:57 +00:00
|
|
|
pytestCheckHook
|
2024-09-19 14:19:46 +00:00
|
|
|
pytz
|
2023-11-16 04:20:00 +00:00
|
|
|
restructuredtext-lint
|
2022-12-02 08:20:57 +00:00
|
|
|
pygments
|
2024-09-19 14:19:46 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = lib.optionals (lib.versionOlder icalendar.version "6") [
|
|
|
|
# ModuleNotFoundError: No module named 'icalendar.timezone'
|
|
|
|
"test_can_import_zoneinfo"
|
|
|
|
"test_documentation_file"
|
2022-12-02 08:20:57 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "recurring_ical_events" ];
|
|
|
|
|
|
|
|
meta = {
|
2023-01-20 10:41:00 +00:00
|
|
|
changelog = "https://github.com/niccokunzmann/python-recurring-ical-events/blob/${src.rev}/README.rst#changelog";
|
2022-12-02 08:20:57 +00:00
|
|
|
description = "Repeat ICalendar events by RRULE, RDATE and EXDATE";
|
|
|
|
homepage = "https://github.com/niccokunzmann/python-recurring-ical-events";
|
|
|
|
license = lib.licenses.lgpl3Plus;
|
|
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|