python3Packages.icalendar-compatibility: init at 0.1.4

This commit is contained in:
Kerstin Humm
2025-03-13 10:44:37 +01:00
parent 08a88be023
commit 473c1988ab
2 changed files with 55 additions and 0 deletions
@@ -0,0 +1,53 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
hatch-vcs,
icalendar,
pytestCheckHook,
git,
}:
buildPythonPackage rec {
pname = "icalendar-compatibility";
version = "0.1.4";
pyproject = true;
src = fetchFromGitHub {
owner = "niccokunzmann";
repo = "icalendar_compatibility";
tag = "v${version}";
hash = "sha256-h9rpbltNEPMteicPJ6oC32NsZS8QXQphLbC0Qiu7j5Q=";
};
# hatch-vcs tries to read the current git commit hash
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'dynamic = ["urls", "version"]' 'version = "${version}"'
'';
build-system = [
hatchling
hatch-vcs
];
dependencies = [ icalendar ];
nativeCheckInputs = [
pytestCheckHook
git
];
pythonImportsCheck = [ "icalendar_compatibility" ];
# env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
meta = {
homepage = "https://icalendar-compatibility.readthedocs.io/en/latest/";
changelog = "https://icalendar-compatibility.readthedocs.io/en/latest/changes.html";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ erictapen ];
};
}
+2
View File
@@ -6306,6 +6306,8 @@ self: super: with self; {
icalendar = callPackage ../development/python-modules/icalendar { };
icalendar-compatibility = callPackage ../development/python-modules/icalendar-compatibility { };
icalevents = callPackage ../development/python-modules/icalevents { };
icecream = callPackage ../development/python-modules/icecream { };