depot/third_party/nixpkgs/pkgs/development/python-modules/recurring-ical-events/default.nix

66 lines
1.4 KiB
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools,
icalendar,
python-dateutil,
tzdata,
x-wr-timezone,
pytestCheckHook,
pytz,
restructuredtext-lint,
pygments,
}:
buildPythonPackage rec {
pname = "recurring-ical-events";
version = "3.3.0";
disabled = pythonOlder "3.8";
pyproject = true;
src = fetchFromGitHub {
owner = "niccokunzmann";
repo = "python-recurring-ical-events";
rev = "v${version}";
hash = "sha256-1Ggxi61epge6Rxc/vJ7OuuNjjeaQYReEPeOZV8DLghk=";
};
build-system = [ setuptools ];
pythonRelaxDeps = [ "icalendar" ];
dependencies = [
icalendar
python-dateutil
tzdata
x-wr-timezone
];
nativeCheckInputs = [
pytestCheckHook
pytz
restructuredtext-lint
pygments
];
disabledTests = lib.optionals (lib.versionOlder icalendar.version "6") [
# ModuleNotFoundError: No module named 'icalendar.timezone'
"test_can_import_zoneinfo"
"test_documentation_file"
];
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 ];
};
}