1{ lib
2, buildPythonPackage
3, django
4, fetchFromGitHub
5, polib
6, pythonOlder
7, requests
8}:
9
10buildPythonPackage rec {
11 pname = "django-rosetta";
12 version = "0.9.9";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "mbi";
19 repo = "django-rosetta";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-OuKgqGYBlzQNKKAJYFhNi+LnONB/mxINMj4VBAVWjqI=";
22 };
23
24 propagatedBuildInputs = [
25 django
26 polib
27 requests
28 ];
29
30 # require internet connection
31 doCheck = false;
32
33 pythonImportsCheck = [
34 "rosetta"
35 ];
36
37 meta = with lib; {
38 description = "Rosetta is a Django application that facilitates the translation process of your Django projects";
39 homepage = "https://github.com/mbi/django-rosetta";
40 changelog = "https://github.com/mbi/django-rosetta/releases/tag/v${version}";
41 license = licenses.mit;
42 maintainers = with maintainers; [ derdennisop ];
43 };
44}
45