Files
nixpkgs/pkgs/development/python-modules/django-rosetta/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

47 lines
960 B
Nix

{
lib,
buildPythonPackage,
django,
fetchFromGitHub,
polib,
pythonOlder,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "django-rosetta";
version = "0.10.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "mbi";
repo = "django-rosetta";
tag = "v${version}";
hash = "sha256-VnKbtzLY2+3RTk4gNZASuVSDGzfgoyr06RUNB2r0eDw=";
};
build-system = [ setuptools ];
dependencies = [
django
polib
requests
];
# require internet connection
doCheck = false;
pythonImportsCheck = [ "rosetta" ];
meta = {
description = "Rosetta is a Django application that facilitates the translation process of your Django projects";
homepage = "https://github.com/mbi/django-rosetta";
changelog = "https://github.com/mbi/django-rosetta/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ derdennisop ];
};
}