depot/third_party/nixpkgs/pkgs/development/python-modules/argos-translate-files/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

42 lines
797 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
lxml,
translatehtml,
}:
buildPythonPackage rec {
pname = "argos-translate-files";
version = "1.1.4";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-YSTqqd+Kv2QVlAjA0lf4IRx7rJ1DmvB0JIReBv3yZcM=";
};
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 ];
};
}