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