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