1{
2 lib,
3 beautifulsoup4,
4 buildPythonPackage,
5 celery,
6 django,
7 fetchFromGitHub,
8 importlib-metadata,
9 python,
10 pythonOlder,
11 requests,
12 structlog,
13}:
14
15buildPythonPackage rec {
16 pname = "django-google-analytics-app";
17 version = "6.0.0";
18 format = "setuptools";
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchFromGitHub {
23 owner = "praekeltfoundation";
24 repo = "django-google-analytics";
25 tag = version;
26 hash = "sha256-0KLfGZY8qq5JGb+LJXpQRS76+qXtrf/hv6QLenm+BhQ=";
27 };
28
29 propagatedBuildInputs = [
30 beautifulsoup4
31 celery
32 django
33 importlib-metadata
34 requests
35 structlog
36 ];
37
38 checkPhase = ''
39 runHook preCheck
40 ${python.interpreter} -m django check --settings=test_settings
41 runHook postCheck
42 '';
43
44 pythonImportsCheck = [ "google_analytics" ];
45
46 meta = with lib; {
47 description = "Django Google Analytics brings the power of server side/non-js Google Analytics to your Django projects";
48 homepage = "https://github.com/praekeltfoundation/django-google-analytics/";
49 changelog = "https://github.com/praekeltfoundation/django-google-analytics/releases/tag/${version}";
50 license = licenses.bsd3;
51 maintainers = with maintainers; [ derdennisop ];
52 };
53}