Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / translatepy / default.nix
blob08e7dfab6177913b00b65468712d9ad4760ef4e2
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , requests
5 , beautifulsoup4
6 , pyuseragents
7 , safeio
8 , inquirer
9 , pytestCheckHook
12 buildPythonPackage rec {
13   pname = "translatepy";
14   version = "2.3";
16   src = fetchFromGitHub {
17     owner = "Animenosekai";
18     repo = "translate";
19     rev = "refs/tags/v${version}";
20     hash = "sha256-cx5OeBrB8il8KrcyOmQbQ7VCXoaA5RP++oTTxCs/PcM=";
21   };
23   propagatedBuildInputs = [
24     requests
25     beautifulsoup4
26     pyuseragents
27     safeio
28     inquirer
29   ];
31   nativeCheckInputs = [ pytestCheckHook ];
32   disabledTestPaths = [
33     # Requires network connection
34     "tests/test_translate.py"
35     "tests/test_translators.py"
36   ];
37   pythonImportsCheck = [ "translatepy" ];
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   };