diff --git a/python-pkgs/django-modeltranslation.nix b/python-pkgs/django-modeltranslation.nix new file mode 100644 index 0000000..e6a7370 --- /dev/null +++ b/python-pkgs/django-modeltranslation.nix @@ -0,0 +1,46 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + setuptools, + wheel, + django, + typing-extensions, +}: + +buildPythonPackage rec { + pname = "django-modeltranslation"; + version = "0.19.11"; + pyproject = true; + + src = fetchFromGitHub { + owner = "deschler"; + repo = "django-modeltranslation"; + rev = "v${version}"; + hash = "sha256-J/D0rHhxJMpOSGu9LQ6tPKnjBZhqTX6I5YcSkx5+qXk="; + }; + + build-system = [ + poetry-core + setuptools + wheel + ]; + + dependencies = [ + django + typing-extensions + ]; + + pythonImportsCheck = [ + "modeltranslation" + ]; + + meta = { + description = "Translates Django models using a registration approach"; + homepage = "https://github.com/deschler/django-modeltranslation.git"; + changelog = "https://github.com/deschler/django-modeltranslation/blob/${src.rev}/CHANGELOG.md"; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ ]; + }; +}