1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 django,
6 pytestCheckHook,
7 pytest-django,
8 python,
9}:
10
11buildPythonPackage {
12 pname = "django-crossdomainmedia";
13 version = "0.0.4";
14 format = "setuptools";
15
16 src = fetchFromGitHub {
17 owner = "stefanw";
18 repo = "django-crossdomainmedia";
19 # Release is not tagged yet
20 # https://github.com/stefanw/django-crossdomainmedia/issues/1
21 # rev = "refs/tags/v${version}";
22 rev = "45af45a82e2630d99381758c7660fe9bdad06d2d";
23 hash = "sha256-nwFUm+cxokZ38c5D77z15gIO/kg49oRACOl6+eGGEtQ=";
24 };
25
26 dependencies = [ django ];
27
28 checkPhase = ''
29 ${python.interpreter} manage.py test
30 '';
31
32 # django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG, but settings are not configured.
33 # pythonImportsCheck = [ "crossdomainmedia" ];
34
35 meta = {
36 description = "Django application to retrieve user's IP address";
37 homepage = "https://github.com/stefanw/django-crossdomainmedia";
38 license = lib.licenses.mit;
39 maintainers = [ lib.maintainers.onny ];
40 };
41}