From patchwork Thu Apr 3 21:06:08 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andrew Wong X-Patchwork-Id: 41248 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2CFC627BBE9; Thu, 3 Apr 2025 22:08:36 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B40C427BBE2 for ; Thu, 3 Apr 2025 22:08:34 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u0RnB-0004zo-6k; Thu, 03 Apr 2025 17:08:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u0Rn9-0004zI-El for guix-patches@gnu.org; Thu, 03 Apr 2025 17:08:03 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1u0Rn9-0001mt-6Z for guix-patches@gnu.org; Thu, 03 Apr 2025 17:08:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=TTZ73StAVYy+P0jal3Zh0urfyqy+cQw0/tao35vd1sM=; b=Mg/Wx2QsO4WsXC5GwPCdeb16h6FEDU44pcrsxoJlyc0wZ0lSduo/NXccK1F9l9cWXBKStYsJA7eAeFHyPHzoiIXdKr7GeAd2HlBDmSTsNkGQqlHFC+wt/diS4dcsm+13KlbQWQxdnttonOSAIL3K372AJUI8yO2VdwglwIMhTWlCcHQ/Pk8P+SGz3T3JCyuDDdmDw+URUrh4rIdqkbXI7m2EhZ6OYv/yZkZFzkmWQo4axpQU0oqTJkYdUimf2CTDqHM9uYn14H6SByl/pffoKeHzxvypcMXrhacWEhXQddx9p8TsL1ugdFjs4FAW97pyGkuyjsIHuPp6H6sbRkWJMw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1u0Rn8-0004kE-0g for guix-patches@gnu.org; Thu, 03 Apr 2025 17:08:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77508] [PATCH] gnu: Add meteo-qt. Resent-From: Andrew Wong Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Apr 2025 21:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 77508 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77508@debbugs.gnu.org Cc: Andrew Wong X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.174371445118198 (code B ref -1); Thu, 03 Apr 2025 21:08:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 Apr 2025 21:07:31 +0000 Received: from localhost ([127.0.0.1]:35948 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u0Rmd-0004jR-9v for submit@debbugs.gnu.org; Thu, 03 Apr 2025 17:07:31 -0400 Received: from lists.gnu.org ([2001:470:142::17]:46520) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u0Rmb-0004jC-0J for submit@debbugs.gnu.org; Thu, 03 Apr 2025 17:07:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u0RmV-0004sE-GW for guix-patches@gnu.org; Thu, 03 Apr 2025 17:07:23 -0400 Received: from qs51p00im-qukt01072301.me.com ([17.57.155.12]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u0RmT-0001dk-A9 for guix-patches@gnu.org; Thu, 03 Apr 2025 17:07:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; bh=TTZ73StAVYy+P0jal3Zh0urfyqy+cQw0/tao35vd1sM=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:x-icloud-hme; b=vMhdxDncmSejaDw17cnYGC4SjtpFzcPob1FaBo8l7q/0+li52K7MloETBCPAuKTiQ TkJ6doi9PXzBHRuieAsFyHoD6q5dKn2uLyg2pHyxUa3AZYsfr1I3g9tX7mVZjJ4BcM cyIqCUWPu0BBY7obBA/bCU1eeyYSBqy04JCdRB4+ppKu1qlipLtf/BfYEjfgIYXlWi vjawvmMwhwyd9E+enIW05JFK5iK8t5h3ciMNeWL281JCeiXupNLqGSOlFQ32C/UvcQ dCHaeiJ5jBVOsT/zBzDWT9SuApSeT+2QZ8WBfBMixKY+nYwT44Axz6rXexrUJGHpxj sODEbDkQtsEKw== Received: from wongworks.lan (qs51p00im-dlb-asmtp-mailmevip.me.com [17.57.155.28]) by qs51p00im-qukt01072301.me.com (Postfix) with ESMTPSA id B00492540146; Thu, 3 Apr 2025 21:07:17 +0000 (UTC) Date: Thu, 3 Apr 2025 17:06:08 -0400 Message-ID: X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: C0Tj1vQ3-QrofJ20-dM8NXUEfAb3FVxN X-Proofpoint-GUID: C0Tj1vQ3-QrofJ20-dM8NXUEfAb3FVxN X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1095,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-04-03_09,2025-04-03_03,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 phishscore=0 malwarescore=0 mlxlogscore=999 bulkscore=0 spamscore=0 mlxscore=0 clxscore=1015 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2504030111 X-Apple-Remote-Links: v=1;h=KCk=;charset=UTF-8 Received-SPF: pass client-ip=17.57.155.12; envelope-from=wongandj@icloud.com; helo=qs51p00im-qukt01072301.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Andrew Wong X-ACL-Warn: , Andrew Wong via Guix-patches X-Patchwork-Original-From: Andrew Wong via Guix-patches via From: Andrew Wong Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/weather.scm (meteo-qt): New variable. Change-Id: I2ba0a0612845659abfb917811866684eb46c3a80 --- gnu/packages/weather.scm | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) base-commit: 757763075d1251d9015a09200fbd73693cccab53 diff --git a/gnu/packages/weather.scm b/gnu/packages/weather.scm index 1ee4569b27..2651c05035 100644 --- a/gnu/packages/weather.scm +++ b/gnu/packages/weather.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2022, 2024 Nicolas Goaziou +;;; Copyright © 2025 Andrew Wong ;;; ;;; This file is part of GNU Guix. ;;; @@ -19,12 +20,16 @@ (define-module (gnu packages weather) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix build-system go) + #:use-module (guix build-system python) + #:use-module (guix gexp) #:use-module (guix git-download) #:use-module (guix packages) #:use-module (gnu packages) #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) - #:use-module (gnu packages golang-xyz)) + #:use-module (gnu packages golang-xyz) + #:use-module (gnu packages qt) + #:use-module (gnu packages xml)) (define-public wego (package @@ -55,3 +60,36 @@ (define-public wego range---felt and measured---, wind speed and direction, viewing distance, precipitation amount and probability.") (license license:isc))) + +(define-public meteo-qt + (package + (name "meteo-qt") + (version "4.2") + (source + (origin (method git-fetch) + (uri (git-reference (url "https://github.com/dglent/meteo-qt") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1cvmh5rq50dncd2fmp4amjb2hhl2mryb2ywg0zdzhz89dkjq0kdk")))) + (build-system python-build-system) + (native-inputs (list python-pyqt-6)) + (propagated-inputs (list python-lxml python-pyqt-6 python-sip)) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-before 'build 'remove-translations + (lambda _ + ;; Translation processing is broken because Guix thinks lprodump + ;; is in qtbase, not qttools. So, we'll skip it and exclude + ;; qttools from the native input list until it is fixed. + (substitute* "setup.py" + (("/usr") #$output) + (("^.+lrelease-pro-qt6.+$") "") + (("^.+meteo_qt/translations.+$") ""))))))) + (home-page "https://github.com/dglent/meteo-qt") + (synopsis "Weather application for the system tray") + (description "meteo-qt is an application to display weather information in +desktop panels, desktop notifictions and its own window. Weather information is +retrieved from OpenWeatherMap.") + (license license:gpl3)))