2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
arrow,
|
|
|
|
attrs,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytest-flakes,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
tatsu,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ics";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "0.7.2";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-05-20 23:08:51 +00:00
|
|
|
owner = "ics-py";
|
|
|
|
repo = "ics-py";
|
2022-07-14 12:49:19 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-hdtnET7YfSb85+TGwpwzoxOfxPT7VSj9eKSiV6AXUS8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace-fail "--pep8" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
build-system = [ setuptools ];
|
2024-01-25 14:12:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
dependencies = [
|
2024-01-25 14:12:00 +00:00
|
|
|
attrs
|
2021-05-20 23:08:51 +00:00
|
|
|
arrow
|
|
|
|
tatsu
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
pytest-flakes
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Failure seems to be related to arrow > 1.0
|
|
|
|
"test_event"
|
2022-01-19 23:45:15 +00:00
|
|
|
# Broke with TatSu 5.7:
|
|
|
|
"test_many_lines"
|
2024-06-05 15:53:02 +00:00
|
|
|
# AssertionError: 'Europe/Berlin' not found in "tzfile('Atlantic/Jan_Mayen')"
|
|
|
|
"test_timezone_not_dropped"
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "ics" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Pythonic and easy iCalendar library (RFC 5545)";
|
|
|
|
longDescription = ''
|
|
|
|
Ics.py is a pythonic and easy iCalendar library. Its goals are to read and
|
|
|
|
write ics data in a developer friendly way.
|
|
|
|
'';
|
2024-01-25 14:12:00 +00:00
|
|
|
homepage = "http://icspy.readthedocs.org/";
|
2021-05-20 23:08:51 +00:00
|
|
|
changelog = "https://github.com/ics-py/ics-py/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|