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