2022-11-04 12:27:35 +00:00
|
|
|
{ lib
|
|
|
|
, python-dateutil
|
|
|
|
, buildPythonPackage
|
2022-12-17 10:02:37 +00:00
|
|
|
, emoji
|
2022-11-04 12:27:35 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, freezegun
|
|
|
|
, tzdata
|
|
|
|
, pyparsing
|
|
|
|
, pydantic
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-benchmark
|
|
|
|
, pytest-golden
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ical";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "4.2.9";
|
2022-11-04 12:27:35 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "allenporter";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/${version}";
|
2023-01-11 07:51:40 +00:00
|
|
|
hash = "sha256-p1cvs+xLin2WK2zyqQFd1vWKzt+LU2mpDSieOgA7Qf8=";
|
2022-11-04 12:27:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-12-17 10:02:37 +00:00
|
|
|
emoji
|
2022-11-04 12:27:35 +00:00
|
|
|
python-dateutil
|
|
|
|
tzdata
|
|
|
|
pydantic
|
|
|
|
pyparsing
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
freezegun
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-benchmark
|
|
|
|
pytest-golden
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
# https://github.com/allenporter/ical/issues/136
|
|
|
|
disabledTests = [ "test_all_zoneinfo" ];
|
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"ical"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library for handling iCalendar";
|
|
|
|
homepage = "https://github.com/allenporter/ical";
|
|
|
|
changelog = "https://github.com/allenporter/ical/releases/tag/${version}";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|