2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, django
|
|
|
|
, django-appconf
|
|
|
|
, pytest-django
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-statici18n";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "2.3.1";
|
|
|
|
format = "setuptools";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zyegfryed";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-2fFJJNdF0jspS7djDL8sToPTetzNR6pfNp5ohCNa30I=";
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
django
|
|
|
|
django-appconf
|
|
|
|
];
|
2021-10-28 06:52:43 +00:00
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"statici18n"
|
|
|
|
];
|
|
|
|
|
|
|
|
DJANGO_SETTINGS_MODULE = "tests.test_project.project.settings";
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|