1{
2 lib,
3 buildPythonPackage,
4 django,
5 fetchFromGitHub,
6 pytest,
7 pytest-django,
8 pythonOlder,
9 python,
10}:
11
12buildPythonPackage rec {
13 pname = "django-parler";
14 version = "2.3";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "django-parler";
21 repo = "django-parler";
22 rev = "refs/tags/v${version}";
23 hash = "sha256-tRGifFPCXF3aa3PQWKw3tl1H1TY+lgcChUP1VdwG1cE=";
24 };
25
26 propagatedBuildInputs = [ django ];
27
28 checkPhase = ''
29 runHook preCheck
30 ${python.interpreter} runtests.py
31 runHook postCheck
32 '';
33
34 meta = with lib; {
35 description = "Simple Django model translations without nasty hacks";
36 homepage = "https://github.com/django-parler/django-parler";
37 changelog = "https://github.com/django-parler/django-parler/releases/tag/v${version}";
38 license = licenses.asl20;
39 maintainers = with maintainers; [ derdennisop ];
40 };
41}