1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, requests
5, beautifulsoup4
6, pyuseragents
7, inquirer
8, pytestCheckHook
9}:
10
11buildPythonPackage rec {
12 pname = "translatepy";
13 version = "2.2";
14
15 src = fetchFromGitHub {
16 owner = "Animenosekai";
17 repo = "translate";
18 rev = "v${version}";
19 sha256 = "rnt4nmDgQXSgzwNCcsZwbQn2bv83DFhL86kebeiSosc=";
20 };
21
22 propagatedBuildInputs = [
23 requests
24 beautifulsoup4
25 pyuseragents
26 inquirer
27 ];
28
29 checkInputs = [ pytestCheckHook ];
30 disabledTestPaths = [
31 # Requires network connection
32 "tests/test_translate.py"
33 "tests/test_translators.py"
34 ];
35 pythonImportsCheck = [ "translatepy" ];
36
37 meta = with lib; {
38 description = "A module grouping multiple translation APIs";
39 homepage = "https://github.com/Animenosekai/translate";
40 license = with licenses; [ agpl3Only ];
41 maintainers = with maintainers; [ angustrau ];
42 };
43}