Files
nixpkgs/pkgs/development/python-modules/mtranslate/default.nix
Fabian Affolter 9e2ab2afc6 python3Packages.mtranslate: init at 1.8
Module to interact with the API for Google translate

https://github.com/mouuff/mtranslate
2026-11-16 18:35:51 +01:00

37 lines
766 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
nix-update-script,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "mtranslate";
version = "1.8";
pyproject = true;
src = fetchFromGitHub {
owner = "mouuff";
repo = "mtranslate";
tag = finalAttrs.version;
hash = "sha256-vzY//hIVZEZtNoJku+atKKIMmr/0CQVmfbg2AN5KKyY=";
};
build-system = [ setuptools ];
pythonImportsCheck = [ "mtranslate" ];
# Module has no unit tests
doCheck = false;
passthru.updateScript = nix-update-script { };
meta = {
description = "Module to interact with the API for Google translate";
homepage = "https://github.com/mouuff/mtranslate";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
})