mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 09:44:18 +00:00
python310Packages.argos-translate-files: init at 1.1.3
This commit is contained in:
parent
1f14c223ac
commit
44733abecd
@ -0,0 +1,41 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, lxml
|
||||
, translatehtml
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "argos-translate-files";
|
||||
version = "1.1.3";
|
||||
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "c6931ea8fbabdc24903ceaabfe848be0fa4a0477d00451a8dfbc1525b623f0ba";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -614,6 +614,8 @@ self: super: with self; {
|
||||
ctranslate2-cpp = pkgs.ctranslate2;
|
||||
};
|
||||
|
||||
argos-translate-files = callPackage ../development/python-modules/argos-translate-files { };
|
||||
|
||||
argparse-addons = callPackage ../development/python-modules/argparse-addons { };
|
||||
|
||||
argparse-dataclass = callPackage ../development/python-modules/argparse-dataclass { };
|
||||
|
Loading…
Reference in New Issue
Block a user