ce641f4048
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
43 lines
910 B
Nix
43 lines
910 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, requests
|
|
, beautifulsoup4
|
|
, pyuseragents
|
|
, inquirer
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "translatepy";
|
|
version = "2.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Animenosekai";
|
|
repo = "translate";
|
|
rev = "v${version}";
|
|
sha256 = "rnt4nmDgQXSgzwNCcsZwbQn2bv83DFhL86kebeiSosc=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
beautifulsoup4
|
|
pyuseragents
|
|
inquirer
|
|
];
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
disabledTestPaths = [
|
|
# Requires network connection
|
|
"tests/test_translate.py"
|
|
"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 ];
|
|
};
|
|
}
|