about summary refs log tree commit diff
path: root/pkgs/development/python-modules/argos-translate-files
diff options
context:
space:
mode:
authormisuzu <bakalolka@gmail.com>2023-04-27 19:14:29 +0300
committermisuzu <bakalolka@gmail.com>2023-06-23 20:39:52 +0300
commit44733abecd966f9922467f15a23deaf1e9f991c3 (patch)
treefb2dad1f99a3fb24b761685f658d80a8fc567252 /pkgs/development/python-modules/argos-translate-files
parent1f14c223acbec52a9582676b44465bf30301c341 (diff)
python310Packages.argos-translate-files: init at 1.1.3
Diffstat (limited to 'pkgs/development/python-modules/argos-translate-files')
-rw-r--r--pkgs/development/python-modules/argos-translate-files/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/argos-translate-files/default.nix b/pkgs/development/python-modules/argos-translate-files/default.nix
new file mode 100644
index 0000000000000..1acab31b723cd
--- /dev/null
+++ b/pkgs/development/python-modules/argos-translate-files/default.nix
@@ -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 ];
+  };
+}