Info2: <<

Package: babel-py%type_pkg[python]
Version: 2.14.0
Revision: 1

Maintainer: None <fink-devel@lists.sourceforge.net>
License: BSD
Type: python (3.7 3.8 3.9 3.10)
Homepage: https://pypi.org/project/Babel
Source: https://files.pythonhosted.org/packages/source/B/Babel/Babel-%v.tar.gz
Source-Checksum: SHA256(6919867db036398ba21eb5c7a0f6b28ab8cbc3ae7a73a44ebe34ae74a4e7d363)

Depends: <<
	python%type_pkg[python]-shlibs,
	( %type_pkg[python] = 37 ) pytz-py%type_pkg[python] (>= 2015.7),
	( %type_pkg[python] = 38 ) pytz-py%type_pkg[python] (>= 2015.7)
<<
BuildDepends: <<
	python%type_pkg[python],
	setuptools-tng-py%type_pkg[python]
<<
Description: Internationalization

DescDetail: <<
Babel provides access to the majority of the CLDR data. It simplifies
internationalization by doing the heavy lifting for you. It can format
dates, timespans and all kinds of number information. It simplifies
dealing with timezones and gives you access to the raw data (like
month and timezone names, how formatting works for different languages
and more).
<<
DescPackaging: <<
Previous maintainer: Kurt Schwehr <goatbar@users.sourceforge.net>
<<

DocFiles: LICENSE README.rst

CompileScript: <<
	%p/bin/python%type_raw[python] setup.py build
<<
#InfoTest: <<
#	TestDepends: <<
#		freezegun-py%type_pkg[python],
#		pluggy-py%type_pkg[python] (>= 1.2.0),
#		pytest-py%type_pkg[python],
#		pytest-cov-py%type_pkg[python]
#	<<
#	TestScript: <<
#		%p/bin/python%type_raw[python] -m pytest -vv || exit 2
#	<<
#<<
InstallScript: <<
	%p/bin/python%type_raw[python] setup.py install --root=%d
	mv %i/bin/pybabel %i/bin/pybabel-py%type_raw[python]
<<

PostInstScript: <<
  echo "update-alternatives --install %p/bin/pybabel babel-py %p/bin/pybabel-py%type_raw[python] %type_pkg[python]"
  update-alternatives --install %p/bin/pybabel babel-py %p/bin/pybabel-py%type_raw[python] %type_pkg[python]
  echo "Useful commands:"
  echo "  update-alternatives --list babel-py"
  echo "  update-alternatives --display babel-py"
  echo "  update-alternatives --verbose --remove-all babel-py"
<<

PreRmScript: <<
  if [ $1 != "upgrade" ]; then
    update-alternatives --verbose --remove babel-py %p/bin/pybabel-py%type_raw[python]
  else
    echo "Do not remove during upgrade"
  fi
<<

# Info2
<<