depot/third_party/nixpkgs/pkgs/development/python-modules/recurring-ical-events/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

65 lines
1.4 KiB
Nix

{
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 ];
};
}