Subject: [bug#58868] [PATCH 2/4] python-darkdetect: New package

From: Jacob Hrbek <[email-masked]>
Date: Sat, 29 Oct 2022 17:08:46 +0000

---
 gnu/packages/python-xyz.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index fcfea2d99c..6818b50d8e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -4481,6 +4481,24 @@ (define-public python-daemon
     ;; Only setup.py is gpl3+, everything else is apache 2.0 licensed.
     (license (list license:asl2.0 license:gpl3+))))

+(define-public python-darkdetect
+  (package
+    (name "python-darkdetect")
+    (version "0.7.1")
+    (home-page "http://github.com/albertosottile/darkdetect")
+    (synopsis "Detect OS Dark Mode from Python")
+    (description "Detect OS Dark Mode from Python")
+    (license license:bsd-3)
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "darkdetect" version))
+              (sha256
+               (base32
+                "04whykmwrrw3k6084g4r2iwl063p4ckwkzxv2svdscj42gskrgj7"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:tests? #f)))) ; AttributeError: python: undefined symbol: objc_getClass
+
 (define-public python-anytree
   (package
     (name "python-anytree")
--
2.37.3