about summary refs log tree commit diff
diff options
context:
space:
mode:
authorfreezeboy <freezeboy@users.noreply.github.com>2020-11-19 00:35:50 +0100
committerJonathan Ringer <jonringer@users.noreply.github.com>2020-11-18 20:50:00 -0800
commit813255b8160ac5422921fcc9b8b3b0f33459b1cd (patch)
treeb909381b7b7ba6894302828804e026a92b18cf0d
parentcaa738142fbbbebb7e801b65134fddf4064e52d2 (diff)
python3Packages.arabic-reshaper: init at 2.1.1
-rw-r--r--pkgs/development/python-modules/arabic-reshaper/default.nix26
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/arabic-reshaper/default.nix b/pkgs/development/python-modules/arabic-reshaper/default.nix
new file mode 100644
index 0000000000000..ad5f64146a69e
--- /dev/null
+++ b/pkgs/development/python-modules/arabic-reshaper/default.nix
@@ -0,0 +1,26 @@
+{ lib, buildPythonPackage, fetchPypi, future, configparser, isPy27 }:
+
+buildPythonPackage rec {
+  pname = "arabic_reshaper";
+  version = "2.1.1";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "zzGPpdUdLSJPpJv2vbu0aE9r0sBot1z84OYH+JrBmdw=";
+  };
+
+  propagatedBuildInputs = [ future ]
+    ++ lib.optionals isPy27 [ configparser ];
+
+  # Tests are not published on pypi
+  doCheck = false;
+
+  pythonImportsCheck = [ "arabic_reshaper" ];
+
+  meta = with lib; {
+    homepage = "https://github.com/mpcabd/python-arabic-reshaper";
+    description = "Reconstruct Arabic sentences to be used in applications that don't support Arabic";
+    platforms = platforms.unix;
+    maintainers = with maintainers; [ freezeboy ];
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 6acb7a778977e..ce4ba25bf2c55 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -358,6 +358,8 @@ in {
 
   apsw = callPackage ../development/python-modules/apsw { };
 
+  arabic-reshaper = callPackage ../development/python-modules/arabic-reshaper { };
+
   area = callPackage ../development/python-modules/area { };
 
   arelle = callPackage ../development/python-modules/arelle { gui = true; };