python3Packages.django-crossdomainmedia: init at 0.0.4 (#351208)

This commit is contained in:
Yt 2024-10-27 18:29:08 -04:00 committed by GitHub
commit e4d61fffcb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,41 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
django,
pytestCheckHook,
pytest-django,
python,
}:
buildPythonPackage rec {
pname = "django-crossdomainmedia";
version = "0.0.4";
format = "setuptools";
src = fetchFromGitHub {
owner = "stefanw";
repo = "django-crossdomainmedia";
# Release is not tagged yet
# https://github.com/stefanw/django-crossdomainmedia/issues/1
# rev = "refs/tags/v${version}";
rev = "45af45a82e2630d99381758c7660fe9bdad06d2d";
hash = "sha256-nwFUm+cxokZ38c5D77z15gIO/kg49oRACOl6+eGGEtQ=";
};
dependencies = [ django ];
checkPhase = ''
${python.interpreter} manage.py test
'';
# django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG, but settings are not configured.
# pythonImportsCheck = [ "crossdomainmedia" ];
meta = {
description = "Django application to retrieve user's IP address";
homepage = "https://github.com/stefanw/django-crossdomainmedia";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.onny ];
};
}

View File

@ -3370,6 +3370,8 @@ self: super: with self; {
django-crispy-forms = callPackage ../development/python-modules/django-crispy-forms { };
django-crossdomainmedia = callPackage ../development/python-modules/django-crossdomainmedia { };
django-cryptography = callPackage ../development/python-modules/django-cryptography { };
django-csp = callPackage ../development/python-modules/django-csp { };