567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
79 lines
1.5 KiB
Nix
79 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
replaceVars,
|
|
hatch-vcs,
|
|
hatchling,
|
|
python-dateutil,
|
|
tzdata,
|
|
hypothesis,
|
|
pytestCheckHook,
|
|
sphinxHook,
|
|
sphinx-copybutton,
|
|
pydata-sphinx-theme,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "6.3.2";
|
|
pname = "icalendar";
|
|
pyproject = true;
|
|
outputs = [
|
|
"out"
|
|
"doc"
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "collective";
|
|
repo = "icalendar";
|
|
tag = "v${version}";
|
|
hash = "sha256-EnG6zPaKKTgLw2DxWOyBkxlFuqtURpBlxy1aoZjX/TQ=";
|
|
};
|
|
|
|
patches = [
|
|
(replaceVars ./no-dynamic-version.patch {
|
|
inherit version;
|
|
})
|
|
];
|
|
|
|
build-system = [
|
|
hatch-vcs
|
|
hatchling
|
|
];
|
|
|
|
dependencies = [
|
|
python-dateutil
|
|
tzdata
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
sphinxHook
|
|
sphinx-copybutton
|
|
pydata-sphinx-theme
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
hypothesis
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# AssertionError: assert {'Atlantic/Jan_Mayen'} == {'Arctic/Longyearbyen'}
|
|
"test_dateutil_timezone_is_matched_with_tzname"
|
|
"test_docstring_of_python_file"
|
|
# AssertionError: assert $TZ not in set()
|
|
"test_add_missing_timezones_to_example"
|
|
];
|
|
|
|
enabledTestPaths = [ "src/icalendar" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/collective/icalendar/blob/${src.tag}/CHANGES.rst";
|
|
description = "Parser/generator of iCalendar files";
|
|
mainProgram = "icalendar";
|
|
homepage = "https://github.com/collective/icalendar";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = with lib.maintainers; [ olcai ];
|
|
};
|
|
}
|