mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-07 22:03:37 +00:00
Diff: https://github.com/collective/icalendar/compare/v6.3.2...v7.1.2 Changelog: https://github.com/collective/icalendar/blob/v7.1.2/CHANGES.rst
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
replaceVars,
|
|
hatch-vcs,
|
|
hatchling,
|
|
python-dateutil,
|
|
tzdata,
|
|
hypothesis,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "7.1.2";
|
|
pname = "icalendar";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "collective";
|
|
repo = "icalendar";
|
|
tag = "v${version}";
|
|
hash = "sha256-y6t27/l2jnNr6/VlGuXlE2BcNDPOd0wscyCMpRY4+MM=";
|
|
};
|
|
|
|
patches = [
|
|
(replaceVars ./no-dynamic-version.patch {
|
|
inherit version;
|
|
})
|
|
];
|
|
|
|
build-system = [
|
|
hatch-vcs
|
|
hatchling
|
|
];
|
|
|
|
dependencies = [
|
|
python-dateutil
|
|
tzdata
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
hypothesis
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# AssertionError: assert {'Atlantic/Jan_Mayen'} == {'Arctic/Longyearbyen'}
|
|
"test_dateutil_timezone_is_matched_with_tzname"
|
|
"test_docstring_of_python_file"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|