translatepy: init at 2.0

This commit is contained in:
Angus Trau 2021-08-11 22:13:20 +10:00
parent e03873107a
commit 632730c76d
3 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, beautifulsoup4
, pyuseragents
, inquirer
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "translatepy";
version = "2.0";
src = fetchFromGitHub {
owner = "Animenosekai";
repo = "translate";
rev = "v${version}";
sha256 = "Rt6FvB4kZVaB/jxxqOHsnkReTFCCyiEaZf240n0zVZs=";
};
propagatedBuildInputs = [
requests
beautifulsoup4
pyuseragents
inquirer
];
checkInputs = [ pytestCheckHook ];
disabledTestPaths = [
# Requires network connection
"tests/test_translators.py"
];
pythonImportsCheck = [ "translatepy" ];
meta = with lib; {
description = "A module grouping multiple translation APIs";
homepage = "https://github.com/Animenosekai/translate";
license = with licenses; [ agpl3Only ];
maintainers = with maintainers; [ angustrau ];
};
}

View file

@ -9548,6 +9548,8 @@ with pkgs;
translate-shell = callPackage ../applications/misc/translate-shell { };
translatepy = with python3.pkgs; toPythonApplication translatepy;
trash-cli = callPackage ../tools/misc/trash-cli { };
trebleshot = libsForQt5.callPackage ../applications/networking/trebleshot { };

View file

@ -8848,6 +8848,8 @@ in {
transitions = callPackage ../development/python-modules/transitions { };
translatepy = callPackage ../development/python-modules/translatepy { };
translationstring = callPackage ../development/python-modules/translationstring { };
transmission-rpc = callPackage ../development/python-modules/transmission-rpc { };