push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,65 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
replaceVars,
hatch-vcs,
hatchling,
python-dateutil,
tzdata,
hypothesis,
pytestCheckHook,
}:
buildPythonPackage rec {
version = "6.3.1";
pname = "icalendar";
pyproject = true;
src = fetchFromGitHub {
owner = "collective";
repo = "icalendar";
tag = "v${version}";
hash = "sha256-lLcMuwKFdZbjscrp4dW5ybPHwcx9RHf44RH3BWwO6ng=";
};
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"
# AssertionError: assert $TZ not in set()
"test_add_missing_timezones_to_example"
];
enabledTestPaths = [ "src/icalendar" ];
meta = with lib; {
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 = licenses.bsd2;
maintainers = with maintainers; [ olcai ];
};
}

View File

@@ -0,0 +1,17 @@
diff --git a/pyproject.toml b/pyproject.toml
index 9730e46..9834686 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -34,11 +34,7 @@ maintainers = [
{ name="Christian Geier" },
{ name="Jaca", email="vitouejj@gmail.com" },
]
-# These attributes are dynamically generated by hatch-vcs
-dynamic = [
- "urls",
- "version"
-]
+version = "@version@"
description = "iCalendar parser/generator"
readme = { file = "README.rst", content-type = "text/x-rst" }