Subject: [bug#53602] [PATCH 1/2] gnu: Add python-croniter-1.

From: phodina <[email-masked]>
Date: Fri, 28 Jan 2022 11:26:43 +0000

Hello,

Here's an update for python-miio package. The release notes can be found here [1].

[1] https://github.com/rytilahti/python-miio/releases/tag/0.5.9.2
----
Petr

From e1cb36d37785cf80fbe265f300cb8364d56f8554 Mon Sep 17 00:00:00 2001
From: Petr Hodina <[email-masked]>
Date: Mon, 24 Jan 2022 18:18:52 +0100
Subject: [PATCH 1/2] gnu: Add python-croniter-1.

* gnu/packages/python-xyz.scm (python-croniter-1): New variable.
 (python-croniter): Inherit from above.

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c8ba314d38..816c97e9d8 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -104,7 +104,7 @@
 ;;; Copyright © 2021 Maxime Devos <[email-masked]>
 ;;; Copyright © 2021 Hugo Lecomte <[email-masked]>
 ;;; Copyright © 2021 Franck Pérignon <[email-masked]>
-;;; Copyright © 2021 Petr Hodina <[email-masked]>
+;;; Copyright © 2021, 2022 Petr Hodina <[email-masked]>
 ;;; Copyright © 2021 Simon Streit <[email-masked]>
 ;;; Copyright © 2021 Daniel Meißner <[email-masked]>
 ;;; Copyright © 2021 Pradana Aumars <[email-masked]>
@@ -23686,8 +23686,28 @@ (define-public python-annoy
 processes may share the same data.")
     (license license:asl2.0)))
 
+(define-public python-croniter-1
+  (package
+    (name "python-croniter")
+    (version "1.2.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "croniter" version))
+        (sha256
+          (base32 "1my2hlh4wyd5zsbij3hids24zzla73x06d9r2ikn9vdrmvv24i09"))))
+    (build-system python-build-system)
+    (propagated-inputs (list python-dateutil))
+    (home-page "https://github.com/kiorky/croniter")
+    (synopsis "Iterate datetime objects with cron-like syntax")
+    (description
+     "@code{croniter} provides iteration for datetime object with cron-like
+format.")
+    (license license:expat)))
+
 (define-public python-croniter
   (package
+  (inherit python-croniter-1)
     (name "python-croniter")
     (version "0.3.34")
     (source (origin
@@ -23696,15 +23716,7 @@ (define-public python-croniter
               (sha256
                (base32
                 "0r79cx4v2dw4hzr0annkkxxis46c8hivq61sr39z6p7lcjsbk1ki"))))
-    (build-system python-build-system)
-    (propagated-inputs
-     (list python-dateutil python-natsort))
-    (home-page "https://github.com/kiorky/croniter")
-    (synopsis "Iterate datetime objects with cron-like syntax")
-    (description
-     "@code{croniter} provides iteration for datetime object with cron-like
-format.")
-    (license license:expat)))
+    (build-system python-build-system)))
 
 (define-public python-crontab
   (package
-- 
2.34.0

From 69dbd975b5339509a0e434db0a69b89753df723c Mon Sep 17 00:00:00 2001
From: Petr Hodina <[email-masked]>
Date: Fri, 1 Oct 2021 21:18:55 +0200
Subject: [PATCH 2/2] gnu: python-miio: Update to 0.5.9.2.

* gnu/packages/android.scm (python-miio): Update to 0.5.9.2.
  [propagated-inputs]: Update to python-croniter-1 and python-cryptography-next.

diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm
index 9f00303811..a2a755213c 100644
--- a/gnu/packages/android.scm
+++ b/gnu/packages/android.scm
@@ -11,7 +11,7 @@
 ;;; Copyright © 2019 Ricardo Wurmus <[email-masked]>
 ;;; Copyright © 2020 Sergey Trofimov <[email-masked]>
 ;;; Copyright © 2021 Guillaume Le Vaillant <[email-masked]>
-;;; Copyright © 2021 Petr Hodina <[email-masked]>
+;;; Copyright © 2021, 2022 Petr Hodina <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1078,14 +1078,14 @@ (define-public python-android-backup
 (define-public python-miio
   (package
     (name "python-miio")
-    (version "0.5.8")
+    (version "0.5.9.2")
     (source
-     (origin
-       (method url-fetch)
-       (uri (pypi-uri "python-miio" version))
-       (sha256
-        (base32
-         "0a4f5ybjvibawwxcjm3r9nnrzf1yff6wwgy05yzyk0bb3rmc99fp"))))
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "python-miio" version))
+        (sha256
+          (base32
+            "12ipmcd0iwdgb3kna3wlaazydvqk2rm0rlib9pq7g4j532nilp00"))))
     (build-system python-build-system)
     (arguments
      `(#:phases
@@ -1103,20 +1103,21 @@ (define-public python-miio
            python-sphinx-rtd-theme
            python-sphinxcontrib-apidoc))
     (propagated-inputs
-     (list python-android-backup
-           python-appdirs
-           python-attrs
-           python-click
-           python-construct
-           python-croniter
-           python-cryptography
-           python-defusedxml
-           python-importlib-metadata
-           python-netifaces
-           python-pytz
-           python-pyyaml
-           python-tqdm
-           python-zeroconf))
+      `(("python-android-backup" ,python-android-backup)
+        ("python-appdirs" ,python-appdirs)
+        ("python-attrs" ,python-attrs)
+        ("python-click" ,python-click)
+        ("python-construct" ,python-construct)
+        ("python-croniter" ,python-croniter-1)
+        ("python-cryptography" ,python-cryptography-next)
+        ("python-defusedxml" ,python-defusedxml)
+        ("python-importlib-metadata"
+         ,python-importlib-metadata)
+        ("python-netifaces" ,python-netifaces)
+        ("python-pytz" ,python-pytz)
+        ("python-pyyaml" ,python-pyyaml)
+        ("python-tqdm" ,python-tqdm)
+        ("python-zeroconf" ,python-zeroconf)))
     (home-page "https://github.com/rytilahti/python-miio")
     (synopsis "Control Xiaomi smart appliances")
     (description "This package provides library and command line interface
-- 
2.34.0