02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
45 lines
947 B
Nix
45 lines
947 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, requests
|
|
, beautifulsoup4
|
|
, pyuseragents
|
|
, safeio
|
|
, inquirer
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "translatepy";
|
|
version = "2.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Animenosekai";
|
|
repo = "translate";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-cx5OeBrB8il8KrcyOmQbQ7VCXoaA5RP++oTTxCs/PcM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
beautifulsoup4
|
|
pyuseragents
|
|
safeio
|
|
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; [ emilytrau ];
|
|
};
|
|
}
|