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
42 lines
1.0 KiB
Nix
42 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
django,
|
|
pytestCheckHook,
|
|
pytest-django,
|
|
python,
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
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 ];
|
|
};
|
|
}
|