2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
lxml,
|
|
|
|
translatehtml,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "argos-translate-files";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.1.4";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-YSTqqd+Kv2QVlAjA0lf4IRx7rJ1DmvB0JIReBv3yZcM=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
lxml
|
|
|
|
translatehtml
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
ln -s */requires.txt requirements.txt
|
|
|
|
'';
|
|
|
|
|
|
|
|
# required for import check to work (argostranslate)
|
|
|
|
env.HOME = "/tmp";
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "argostranslatefiles" ];
|
|
|
|
|
|
|
|
doCheck = false; # no tests
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Translate files using Argos Translate";
|
|
|
|
homepage = "https://www.argosopentech.com";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ misuzu ];
|
|
|
|
};
|
|
|
|
}
|