2022-11-04 12:27:35 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-12-17 10:02:37 +00:00
|
|
|
, emoji
|
2022-11-04 12:27:35 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, freezegun
|
|
|
|
, tzdata
|
|
|
|
, pyparsing
|
|
|
|
, pydantic
|
|
|
|
, pytest-benchmark
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2024-01-02 11:29:13 +00:00
|
|
|
, python-dateutil
|
|
|
|
, setuptools
|
2024-04-21 15:54:59 +00:00
|
|
|
, syrupy
|
2022-11-04 12:27:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ical";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "7.0.3";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2022-11-04 12:27:35 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
disabled = pythonOlder "3.10";
|
2022-11-04 12:27:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "allenporter";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "ical";
|
2022-11-04 12:27:35 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-RiwWnRSe0HdeGVo592A+Rk+IvA1Lfp6mY+/ZEyqJBDU=";
|
2022-11-04 12:27:35 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [
|
2024-01-02 11:29:13 +00:00
|
|
|
setuptools
|
2023-07-15 17:15:38 +00:00
|
|
|
];
|
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
python-dateutil
|
|
|
|
tzdata
|
|
|
|
pydantic
|
|
|
|
pyparsing
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2024-01-02 11:29:13 +00:00
|
|
|
emoji
|
2022-11-04 12:27:35 +00:00
|
|
|
freezegun
|
|
|
|
pytest-benchmark
|
|
|
|
pytestCheckHook
|
2024-04-21 15:54:59 +00:00
|
|
|
syrupy
|
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 ];
|
|
|
|
};
|
|
|
|
}
|