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

62 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
pytestCheckHook,
poetry-core,
httplib2,
icalendar,
python-dateutil,
pytz,
}:
buildPythonPackage rec {
pname = "icalevents";
version = "0.1.29";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "jazzband";
repo = "icalevents";
rev = "refs/tags/v${version}";
hash = "sha256-Bp+Wz88q65Gem8LyRz0A4xE5hIgOD+iZ7E1UlnfFiD4=";
};
build-system = [
poetry-core
];
dependencies = [
httplib2
icalendar
python-dateutil
pytz
];
pythonRelaxDeps = [
"httplib2"
"icalendar"
"pytz"
];
nativeCheckInputs = [ 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/v${version}";
description = "Python module for iCal URL/file parsing and querying";
homepage = "https://github.com/jazzband/icalevents";
maintainers = with maintainers; [ jamiemagee ];
license = licenses.mit;
};
}