python3Packages.django-modeltranslation: fix build and modernize

This commit is contained in:
dish
2025-08-24 10:52:52 -04:00
parent 6499992bd3
commit 19156cb537
@@ -9,7 +9,8 @@
pytest-django,
pytestCheckHook,
pythonOlder,
setuptools,
hatchling,
hatch-vcs,
}:
buildPythonPackage rec {
@@ -26,7 +27,10 @@ buildPythonPackage rec {
hash = "sha256-8A5fIZuUMlXe8bHQR0Ha5HoT9VIQsgqpJVMONB5KqCI=";
};
build-system = [ setuptools ];
build-system = [
hatchling
hatch-vcs
];
dependencies = [ django ];
@@ -40,11 +44,11 @@ buildPythonPackage rec {
pythonImportsCheck = [ "modeltranslation" ];
meta = with lib; {
meta = {
description = "Translates Django models using a registration approach";
homepage = "https://github.com/deschler/django-modeltranslation";
changelog = "https://github.com/deschler/django-modeltranslation/blob/v${src.tag}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ augustebaum ];
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ augustebaum ];
};
}