guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#50628] [PATCH 054/154] gnu: Add trytond-carrier-weight.


From: Hartmut Goebel
Subject: [bug#50628] [PATCH 054/154] gnu: Add trytond-carrier-weight.
Date: Fri, 17 Sep 2021 00:53:13 +0200

* gnu/packages/tryton.scm (trytond-carrier-weight): New variable.
---
 gnu/packages/tryton.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

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")
-- 
2.30.2






reply via email to

[Prev in Thread] Current Thread [Next in Thread]