Unverified Commit a94d71e7 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #226376 from DerDennisOP/django-rosetta

python3.pkgs.django-rosetta: init at 0.9.8
parents 6e2cbe16 5bb7bd47
Loading
Loading
Loading
Loading
+45 −0
Original line number Diff line number Diff line
{ 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 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -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 { };