python3Packages.django-ical: init at 1.9.2

This commit is contained in:
kurogeek
2026-03-09 14:22:11 +07:00
parent b0258c8d38
commit bc24e368b2
2 changed files with 63 additions and 0 deletions
@@ -0,0 +1,61 @@
{
buildPythonPackage,
django,
fetchFromGitHub,
lib,
pytest-django,
pytestCheckHook,
setuptools-scm,
icalendar,
django-recurrence,
pythonOlder,
}:
buildPythonPackage rec {
pname = "django-ical";
version = "1.9.2";
pyproject = true;
src = fetchFromGitHub {
owner = "jazzband";
repo = "django-ical";
tag = version;
hash = "sha256-DUe0loayGcUS7MTyLn+g0KBxbIY7VsaoQNHGSMbMI3U=";
};
disabled = pythonOlder "3.7";
dependencies = [
django
django-recurrence
# Latest version didn't pass the test
(icalendar.overrideAttrs (old: rec {
version = "6.0.0";
src = old.src.override {
tag = "v${version}";
hash = "sha256-eWFDY/pNVfcUk3PfB0vXqh9swuSGtflUw44IMDJI+yI=";
};
}))
];
build-system = [ setuptools-scm ];
doCheck = true;
preCheck = ''
export DJANGO_SETTINGS_MODULE=test_settings
'';
pythonImportsCheck = [
"icalendar"
"django_ical"
];
nativeCheckInputs = [
pytest-django
pytestCheckHook
];
meta = with lib; {
description = "iCal feeds for Django based on Django's syndication feed framework.";
homepage = "https://github.com/jazzband/django-ical";
changelog = "https://github.com/jazzband/django-ical/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ kurogeek ];
};
}
+2
View File
@@ -4210,6 +4210,8 @@ self: super: with self; {
django-i18nfield = callPackage ../development/python-modules/django-i18nfield { };
django-ical = callPackage ../development/python-modules/django-ical { };
django-import-export = callPackage ../development/python-modules/django-import-export { };
django-ipware = callPackage ../development/python-modules/django-ipware { };