Files
nixpkgs/pkgs/development/python-modules/django-statici18n/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

54 lines
948 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
django,
django-appconf,
# tests
pytest-django,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "django-statici18n";
version = "2.6.0";
pyproject = true;
src = fetchFromGitHub {
owner = "zyegfryed";
repo = "django-statici18n";
tag = "v${version}";
hash = "sha256-G1JF/AQEDgvDamvjCYiQM7b6HfbdMBhfEUvT3yL1io0=";
};
build-system = [ setuptools ];
dependencies = [
django
django-appconf
];
pythonImportsCheck = [ "statici18n" ];
env.DJANGO_SETTINGS_MODULE = "tests.test_project.project.settings";
nativeCheckInputs = [
pytest-django
pytestCheckHook
];
meta = {
description = "Helper for generating Javascript catalog to static files";
homepage = "https://github.com/zyegfryed/django-statici18n";
license = lib.licenses.bsd3;
maintainers = [
];
};
}