2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
# build-system
|
|
|
|
, setuptools
|
|
|
|
|
|
|
|
# dependencies
|
2022-08-21 13:32:41 +00:00
|
|
|
, django
|
|
|
|
, django-appconf
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
# tests
|
2022-08-21 13:32:41 +00:00
|
|
|
, pytest-django
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-statici18n";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.4.0";
|
|
|
|
pyproject = true;
|
2021-10-28 06:52:43 +00:00
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zyegfryed";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "django-statici18n";
|
|
|
|
# https://github.com/zyegfryed/django-statici18n/issues/59
|
|
|
|
rev = "9b83a8f0f2e625dd5f56d53cfe4e07aca9479ab6";
|
|
|
|
hash = "sha256-KrIlWmN7um9ad2avfANOza579bjYkxTo9F0UFpvLu3A=";
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
2022-08-21 13:32:41 +00:00
|
|
|
django
|
|
|
|
django-appconf
|
|
|
|
];
|
2021-10-28 06:52:43 +00:00
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"statici18n"
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
env.DJANGO_SETTINGS_MODULE = "tests.test_project.project.settings";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-08-21 13:32:41 +00:00
|
|
|
pytest-django
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Helper for generating Javascript catalog to static files";
|
|
|
|
homepage = "https://github.com/zyegfryed/django-statici18n";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ greizgh schmittlauch ];
|
|
|
|
};
|
|
|
|
}
|