47 lines
938 B
Nix
47 lines
938 B
Nix
|
{
|
||
|
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; [ ];
|
||
|
};
|
||
|
}
|