diff options
author | Hartmut Goebel <h.goebel@crazy-compilers.com> | 2021-08-27 15:09:17 +0200 |
---|---|---|
committer | Hartmut Goebel <h.goebel@crazy-compilers.com> | 2021-09-21 21:00:28 +0200 |
commit | c1e9ce4c6ede871f073b739116f99c1d4633542e (patch) | |
tree | 8332f46446817580267e8fa133aeb852b4d48502 /gnu/packages/tryton.scm | |
parent | 755993bf931130f4adcdbc67aab4ba627ef02691 (diff) |
gnu: Add trytond-carrier-weight.
* gnu/packages/tryton.scm (trytond-carrier-weight): New variable.
Diffstat (limited to 'gnu/packages/tryton.scm')
-rw-r--r-- | gnu/packages/tryton.scm | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/tryton.scm b/gnu/packages/tryton.scm index 2e6e2c1036..66d755ff3f 100644 --- a/gnu/packages/tryton.scm +++ b/gnu/packages/tryton.scm @@ -1542,6 +1542,36 @@ These can be used to restrict the usage of a carrier to a specific subdivision or a specific postal code.") (license license:gpl3+))) +(define-public trytond-carrier-weight + (package + (name "trytond-carrier-weight") + (version "6.0.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "trytond_carrier_weight" version)) + (sha256 + (base32 "0l2gg4syym7jk0vjqnw7invh0gngrfmg9zmmvc1k6110aryr77yi")))) + (build-system python-build-system) + (arguments (tryton-arguments "carrier_weight")) + (native-inputs + `(,@%standard-trytond-native-inputs + ("trytond-purchase-shipment-cost" ,trytond-purchase-shipment-cost) + ("trytond-sale-shipment-cost" ,trytond-sale-shipment-cost))) + (propagated-inputs + `(("trytond" ,trytond) + ("trytond-carrier" ,trytond-carrier) + ("trytond-company" ,trytond-company) + ("trytond-currency" ,trytond-currency) + ("trytond-product" ,trytond-product) + ("trytond-product-measurements" ,trytond-product-measurements))) + (home-page "https://docs.tryton.org/projects/modules-carrier-weight") + (synopsis "Tryton module to add cost method based on weight") + (description "The @emph{Carrier Weight} Tryton module adds a cost method +\"on weight\" on carrier. The price is computed by finding the line for which +the weight is greater or equal but smaller than the next line.") + (license license:gpl3+))) + (define-public trytond-company (package (name "trytond-company") |