mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-29 01:10:12 +00:00
Module to interact with the API for Google translate https://github.com/mouuff/mtranslate
37 lines
766 B
Nix
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 ];
|
|
};
|
|
})
|