Files
nixpkgs/pkgs/development/python-modules/icalevents/default.nix
2025-02-26 23:22:29 +00: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.2.1";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "jazzband";
repo = "icalevents";
tag = "v${version}";
hash = "sha256-X3FawNMKr419IJcBQZyDC+7bu4vcHOm8hLhVde1r50o=";
};
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 = with lib; {
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 maintainers; [ jamiemagee ];
license = licenses.mit;
};
}