587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, setuptools
|
|
, icalendar
|
|
, pytz
|
|
, python-dateutil
|
|
, x-wr-timezone
|
|
, pytestCheckHook
|
|
, restructuredtext-lint
|
|
, pygments
|
|
, tzdata
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "recurring-ical-events";
|
|
version = "2.1.3";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "niccokunzmann";
|
|
repo = "python-recurring-ical-events";
|
|
rev = "v${version}";
|
|
hash = "sha256-K2pflwHpzuYDMNUB7YQu6NX21O0aOwRChBgjdiwFQ+Y=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
icalendar
|
|
pytz
|
|
python-dateutil
|
|
x-wr-timezone
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
restructuredtext-lint
|
|
pygments
|
|
tzdata
|
|
];
|
|
|
|
pythonImportsCheck = [ "recurring_ical_events" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/niccokunzmann/python-recurring-ical-events/blob/${src.rev}/README.rst#changelog";
|
|
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 ];
|
|
};
|
|
}
|