For testing, the tryton modules require a common set of native-input, which
basically are the propagated-inputs of `trytond`. (Some modules leave out one
or two of these, but most modules require all.) So to avoid redundant code,
use a variable for defining this common set. This reduces the maintenance
burden when more trytond modules are added.
* gnu/packages/tryton.scm (%standard-trytond-native-inputs): New variable.
(trytond-account, trytond-account-invoice, trytond-account-invoice-stock,
trytond-account-product, trytond-analytic-account, trytond-company,
trytond-country, trytond-currency, trytond-party, trytond-product,
trytond-purchase, trytond-purchase-request, trytond-stock, trytond-stock-lot,
trytond-stock-supply)[native-inputs]: Use it.
native-inouts2
Remove the `python-` prefix from all trytond module packages. The aspect that
these packages are plugins for trytond is much more relevant than that they
are written in Python.
* gnu/packages/tryton.scm (python-trytond-account,
python-trytond-account-invoice, python-trytond-account-invoice-stock,
python-trytond-account-product, python-trytond-analytic-account,
python-trytond-company, python-trytond-counpython-try,
python-trytond-currency, python-trytond-party, python-trytond-product,
python-trytond-purchase, python-trytond-purchase-request,
python-trytond-stock, python-trytond-stock-lot, python-trytond-stock-supply):
New deprecated packages.
(trytond-account, trytond-account-invoice, trytond-account-invoice-stock,
trytond-account-product, trytond-analytic-account, trytond-company,
trytond-country, trytond-currency, trytond-party, trytond-product,
trytond-purchase, trytond-purchase-request, trytond-stock, trytond-stock-lot,
trytond-stock-supply): Renamed from the respective above.
[propagated-inputs]: Adjusted and re-ordered.
As for all Python packages and applications, the inputs need to be propagated.
* gnu/packages/tryton.scm (tryton)[inputs]: Change to {propagated-inputs].
As for all Python packages and applications, the inputs need to be propagated.
* gnu/packages/tryton.scm (trytond)[inputs]: Change to {propagated-inputs].
The former is preferred above the latter.
* gnu/packages/tryton.scm (tryton-phases): Look up "trytond" in the
'inputs' argument instead of in '%build-inputs'.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Python is already provided by the python build-system,
thus there is not need for listing it a native input.
* gnu/packages/tryton.scm (python-trytond-account,
python-trytond-account-invoice, python-trytond-account-invoice-stock,
python-trytond-account-product, python-trytond-analytic-account,
python-trytond-company, python-trytond-country, python-trytond-currency,
python-trytond-party, python-trytond-product, python-trytond-purchase,
python-trytond-purchase-request, python-trytond-stock,
python-trytond-stock-lot, python-trytond-stock-supply)[native-inputs]:
Remove python.
Move proteus near the top, as it is a package to be used by other
ications. Sort all "tryton modules" (python-trytond-*) alphabetically.
* gnu/packages/tryton.scm (python-proteus): Move behind tryton.
(python-trytond-account, python-trytond-account-invoice,
python-trytond-account-invoice-stock, python-trytond-account-product,
python-trytond-analytic-account, python-trytond-company,
python-trytond-country, python-trytond-currency, python-trytond-party,
python-trytond-product, python-trytond-purchase,
python-trytond-purchase-request, python-trytond-stock,
python-trytond-stock-lot, python-trytond-stock-supply): Sort alphabetically.
Trytond is an application, and only python libraries should have
the "python-" prefix.
* gnu/packages/tryton.scm (python-trytond): Rename to...
(trytond): ...this. [synopsis] Rephrase.
(python-trytond): Redefine as a deprecated alias.
(python-trytond-account, python-trytond-account-invoice,
python-trytond-account-invoice-stock, python-trytond-account-product,
python-trytond-analytic-account, python-trytond-company,
python-trytond-country, python-trytond-currency, python-trytond-party,
python-trytond-product, python-trytond-purchase,
python-trytond-purchase-request python-trytond-stock,
python-trytond-stock-lot, python-trytond-stock-supply)[propagated-inputs]:
Rename python-trytond to trytond.