1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 setuptools,
8
9 # dependencies
10 django,
11 django-appconf,
12
13 # tests
14 pytest-django,
15 pytestCheckHook,
16}:
17
18buildPythonPackage rec {
19 pname = "django-statici18n";
20 version = "2.6.0";
21 pyproject = true;
22
23 src = fetchFromGitHub {
24 owner = "zyegfryed";
25 repo = "django-statici18n";
26 tag = "v${version}";
27 hash = "sha256-G1JF/AQEDgvDamvjCYiQM7b6HfbdMBhfEUvT3yL1io0=";
28 };
29
30 build-system = [ setuptools ];
31
32 dependencies = [
33 django
34 django-appconf
35 ];
36
37 pythonImportsCheck = [ "statici18n" ];
38
39 env.DJANGO_SETTINGS_MODULE = "tests.test_project.project.settings";
40
41 nativeCheckInputs = [
42 pytest-django
43 pytestCheckHook
44 ];
45
46 meta = with lib; {
47 description = "Helper for generating Javascript catalog to static files";
48 homepage = "https://github.com/zyegfryed/django-statici18n";
49 license = licenses.bsd3;
50 maintainers = with maintainers; [
51 ];
52 };
53}