python3Packages.django-user-sessions: init at 3.0.3

This commit is contained in:
kurogeek
2026-03-24 12:02:33 +07:00
parent b40629efe5
commit 306f6ca32f
2 changed files with 59 additions and 0 deletions
@@ -0,0 +1,57 @@
{
fetchFromGitHub,
buildPythonPackage,
setuptools-scm,
lib,
django,
pytestCheckHook,
pytest-django,
}:
buildPythonPackage (finalAttrs: {
pname = "django-user-sessions";
version = "3.0.3";
pyproject = true;
src = fetchFromGitHub {
owner = "jazzband";
repo = "django-user-sessions";
tag = finalAttrs.version;
hash = "sha256-vHLeEmlVil1iJi+YkxL5c04Vq/b5b43tjC2ZcjH4/Ys=";
};
build-system = [ setuptools-scm ];
dependencies = [
django
];
nativeCheckInputs = [
pytestCheckHook
pytest-django
];
preCheck = ''
export DJANGO_SETTINGS_MODULE=tests.settings
'';
disabledTestPaths = [
# AssertionError: UserWarning not triggered
"tests/test_admin.py::AdminTest::test_expired"
"tests/test_admin.py::AdminTest::test_list"
"tests/test_admin.py::AdminTest::test_mine"
"tests/test_admin.py::AdminTest::test_search"
"tests/test_admin.py::AdminTest::test_unexpired"
"tests/test_template_filters.py::LocationTemplateFilterTest::test_no_location"
"tests/test_views.py::ViewsTest::test_delete_all_other"
"tests/test_views.py::ViewsTest::test_delete_some_other"
"tests/test_views.py::ViewsTest::test_list"
];
meta = {
description = "Extend Django sessions with a foreign key back to the user, allowing enumerating all user's sessions";
homepage = "https://github.com/jazzband/django-user-sessions";
changelog = "https://github.com/jazzband/django-user-sessions/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ kurogeek ];
};
})
+2
View File
@@ -4414,6 +4414,8 @@ self: super: with self; {
django-types = callPackage ../development/python-modules/django-types { };
django-user-sessions = callPackage ../development/python-modules/django-user-sessions { };
django-valkey = callPackage ../development/python-modules/django-valkey { };
django-versatileimagefield =