Files
nixpkgs/pkgs/development/python-modules/icalevents/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

61 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
pytestCheckHook,
poetry-core,
icalendar,
pook,
python-dateutil,
pytz,
urllib3,
}:
buildPythonPackage rec {
pname = "icalevents";
version = "0.3.1";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "jazzband";
repo = "icalevents";
tag = version;
hash = "sha256-QDqmcZY/UANVKRjk1ZFEFHgrjtD+hXE4qd3tX64sE7c=";
};
build-system = [
poetry-core
];
dependencies = [
icalendar
python-dateutil
pytz
urllib3
];
nativeCheckInputs = [
pook
pytestCheckHook
];
disabledTests = [
# Makes HTTP calls
"test_events_url"
"test_events_async_url"
];
pythonImportsCheck = [ "icalevents" ];
meta = {
changelog = "https://github.com/jazzband/icalevents/releases/tag/${src.tag}";
description = "Python module for iCal URL/file parsing and querying";
homepage = "https://github.com/jazzband/icalevents";
maintainers = with lib.maintainers; [ jamiemagee ];
license = lib.licenses.mit;
};
}