feat(python): django-modeltranslation
This commit is contained in:
parent
e7d5e9d5fc
commit
4f9c41e352
1 changed files with 46 additions and 0 deletions
46
python-pkgs/django-modeltranslation.nix
Normal file
46
python-pkgs/django-modeltranslation.nix
Normal file
|
@ -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; [ ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue