depot/third_party/nixpkgs/pkgs/development/python-modules/django-rosetta/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

45 lines
936 B
Nix

{ lib
, buildPythonPackage
, django
, fetchFromGitHub
, polib
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "django-rosetta";
version = "0.9.9";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "mbi";
repo = "django-rosetta";
rev = "refs/tags/v${version}";
hash = "sha256-OuKgqGYBlzQNKKAJYFhNi+LnONB/mxINMj4VBAVWjqI=";
};
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/mbi/django-rosetta/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ derdennisop ];
};
}