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-05-15 15:35:15 +00:00
|
|
|
version = "2.5.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
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";
|
2024-05-15 15:35:15 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-n6HqHcXvz2ihwN+gJr5P+/Yt4RpuOu2yAjo9fiNZB54=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|