translatepy: init at 2.0
This commit is contained in:
parent
e03873107a
commit
632730c76d
42
pkgs/development/python-modules/translatepy/default.nix
Normal file
42
pkgs/development/python-modules/translatepy/default.nix
Normal file
@ -0,0 +1,42 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, requests
|
||||
, beautifulsoup4
|
||||
, pyuseragents
|
||||
, inquirer
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "translatepy";
|
||||
version = "2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Animenosekai";
|
||||
repo = "translate";
|
||||
rev = "v${version}";
|
||||
sha256 = "Rt6FvB4kZVaB/jxxqOHsnkReTFCCyiEaZf240n0zVZs=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
requests
|
||||
beautifulsoup4
|
||||
pyuseragents
|
||||
inquirer
|
||||
];
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
disabledTestPaths = [
|
||||
# Requires network connection
|
||||
"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 ];
|
||||
};
|
||||
}
|
@ -9548,6 +9548,8 @@ with pkgs;
|
||||
|
||||
translate-shell = callPackage ../applications/misc/translate-shell { };
|
||||
|
||||
translatepy = with python3.pkgs; toPythonApplication translatepy;
|
||||
|
||||
trash-cli = callPackage ../tools/misc/trash-cli { };
|
||||
|
||||
trebleshot = libsForQt5.callPackage ../applications/networking/trebleshot { };
|
||||
|
@ -8848,6 +8848,8 @@ in {
|
||||
|
||||
transitions = callPackage ../development/python-modules/transitions { };
|
||||
|
||||
translatepy = callPackage ../development/python-modules/translatepy { };
|
||||
|
||||
translationstring = callPackage ../development/python-modules/translationstring { };
|
||||
|
||||
transmission-rpc = callPackage ../development/python-modules/transmission-rpc { };
|
||||
|
Loading…
Reference in New Issue
Block a user