Merge pull request #226376 from DerDennisOP/django-rosetta

python3.pkgs.django-rosetta: init at 0.9.8
This commit is contained in:
Sandro 2023-06-18 17:42:45 +02:00 committed by GitHub
commit a94d71e7f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 0 deletions

@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, django
, fetchFromGitHub
, polib
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "django-rosetta";
version = "0.9.8";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "mbi";
repo = "django-rosetta";
rev = "refs/tags/v${version}";
hash = "sha256-3AXwRxNWVkqW65xdqUwjHM1W5qhHXTjapqaM0Wmsebw=";
};
propagatedBuildInputs = [
django
polib
requests
];
# require internet connection
doCheck = false;
pythonImportsCheck = [
"rosetta"
];
meta = with lib; {
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/jazzband/django-rosetta/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ derdennisop ];
};
}

@ -2825,6 +2825,8 @@ self: super: with self; {
django-rest-registration = callPackage ../development/python-modules/django-rest-registration { };
django-rosetta = callPackage ../development/python-modules/django-rosetta { };
django-rq = callPackage ../development/python-modules/django-rq { };
djangorestframework = callPackage ../development/python-modules/djangorestframework { };