depot/third_party/nixpkgs/pkgs/development/python-modules/translatepy/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

46 lines
976 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, beautifulsoup4
, pyuseragents
, safeio
, inquirer
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "translatepy";
version = "2.3";
format = "setuptools";
src = fetchFromGitHub {
owner = "Animenosekai";
repo = "translate";
rev = "refs/tags/v${version}";
hash = "sha256-cx5OeBrB8il8KrcyOmQbQ7VCXoaA5RP++oTTxCs/PcM=";
};
propagatedBuildInputs = [
requests
beautifulsoup4
pyuseragents
safeio
inquirer
];
nativeCheckInputs = [ 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 ];
};
}