1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
37 lines
876 B
Nix
37 lines
876 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
fonttools,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "arabic-reshaper";
|
|
version = "3.0.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mpcabd";
|
|
repo = "python-arabic-reshaper";
|
|
tag = "v${version}";
|
|
hash = "sha256-ucSC5aTvpnlAVQcT0afVecnoN3hIZKtzUhEQ6Qg0jQM=";
|
|
};
|
|
|
|
optional-dependencies = {
|
|
with-fonttools = [ fonttools ];
|
|
};
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "arabic_reshaper" ];
|
|
|
|
meta = {
|
|
description = "Reconstruct Arabic sentences to be used in applications that don't support Arabic";
|
|
homepage = "https://github.com/mpcabd/python-arabic-reshaper";
|
|
changelog = "https://github.com/mpcabd/python-arabic-reshaper/releases/tag/v${version}";
|
|
license = with lib.licenses; [ mit ];
|
|
maintainers = [ ];
|
|
};
|
|
}
|