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

51 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, icalendar
, pytz
, python-dateutil
, x-wr-timezone
, pytestCheckHook
, restructuredtext-lint
, pygments
, tzdata
}:
buildPythonPackage rec {
pname = "recurring-ical-events";
version = "2.1.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "niccokunzmann";
repo = "python-recurring-ical-events";
rev = "v${version}";
hash = "sha256-HNImooD6+hsMIfJX8LuHw1YyFIQNbY7dAjqdupPbhEE=";
};
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 ];
};
}