From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QCOYLO7DPWOhKwAAbAwnHQ (envelope-from ) for ; Wed, 05 Oct 2022 19:50:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aDO2K+7DPWPzIgEAG6o9tA (envelope-from ) for ; Wed, 05 Oct 2022 19:50:38 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 611342360D for ; Wed, 5 Oct 2022 19:50:38 +0200 (CEST) Received: from localhost ([::1]:37852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1og8XV-0002vN-BY for larch@yhetil.org; Wed, 05 Oct 2022 13:50:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50002) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1og8U4-0001GZ-9u for guix-patches@gnu.org; Wed, 05 Oct 2022 13:47:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58921) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1og8U3-00072G-Sa for guix-patches@gnu.org; Wed, 05 Oct 2022 13:47:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1og8U2-00073u-NZ for guix-patches@gnu.org; Wed, 05 Oct 2022 13:47:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58310] [PATCH 06/14] gnu: Add python-hatch-vcs. References: <87h70iqji2.fsf@disroot.org> In-Reply-To: <87h70iqji2.fsf@disroot.org> Resent-From: Garek Dyszel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 05 Oct 2022 17:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58310 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58310@debbugs.gnu.org Received: via spool by 58310-submit@debbugs.gnu.org id=B58310.166499198927071 (code B ref 58310); Wed, 05 Oct 2022 17:47:02 +0000 Received: (at 58310) by debbugs.gnu.org; 5 Oct 2022 17:46:29 +0000 Received: from localhost ([127.0.0.1]:57991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1og8TU-00072Z-KA for submit@debbugs.gnu.org; Wed, 05 Oct 2022 13:46:28 -0400 Received: from knopi.disroot.org ([178.21.23.139]:57350) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1og8TT-00072Q-93 for 58310@debbugs.gnu.org; Wed, 05 Oct 2022 13:46:27 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 9A3584C4A1 for <58310@debbugs.gnu.org>; Wed, 5 Oct 2022 19:46:26 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id 0YVaixFHUtwv for <58310@debbugs.gnu.org>; Wed, 5 Oct 2022 19:46:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1664991985; bh=93iz4W0jCs+m+w+cNmZvvMUtraL7iHDSLwAfXJyqqYs=; h=From:To:Subject:Date; b=Hd1T4eccm6yEmI2SU85YrzC9FxWAWfnimovi7oS5dhtb3aOsJnUq3D31TNwCx1EWU j63RXmJHxO7+6YtfCj6VwZrSIK26Y8XkiMZvZ9Ecs0L2Fr9dbtE7U7pqd7pnrx0Oz/ ZJrFhq/I+zwfFzJY8ND4vh1V1hytYN1+DCYND2Jw0/Xzc/qwzRMEggB3UNvGFlnp8E 5MJnRSAEtO9SNf9QYiVMQ6oMQ4M9VanhG0ZSNPz6p1xsx7KAPmGzdulJtekoA0eD2r 93X6Saj+/iK70bY9oesT/uDbCv30tG9l0Lg5FEISrpw8DSGNx0VpPbI3QnLfMKKeYE jvIhr445IJDQg== Date: Wed, 05 Oct 2022 13:46:20 -0400 Message-ID: <875ygyqi37.fsf@disroot.org> Mime-Version: 1.0 Content-Type: text/plain 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Garek Dyszel X-ACL-Warn: , Garek Dyszel via Guix-patches From: Garek Dyszel via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664992238; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=0XI/PnAplw5aqSg/teVGwmrcJ3fzickimkQ4jRtKAMQ=; b=eOlk9nF7Qj7TKGdM6T/NDoOpvJknl3Z3qtXtIUaX+vIPzSTD4WQC/PbvOUtWcDmanxoPGN 3RX7ZnLQjGK4Sw6sLGjZXsI5yDLZXXp9xEhSlUGLuzL/Lz/QFpmTiGK92t8LYNc2E5jUno LxeVXAP5VPKjVhxcdkb+LhrtF6SLiIBjEYWA8lRBoiUDL5UhAh7PYLjn5fiCPZZ8YGbcES EyBdbm4rpHPF5KfknOjIPvkxnHWfRffN0ea8ohcW1JQUmcPNp7fV1mxjTyw4OYL4CqFGOv 05SiPVZsSCj6kzwXvsuoZb/YG2qwGAKNL2JBXCUxWApY3TqcFTZTtqOF3vlM1A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664992238; a=rsa-sha256; cv=none; b=XXqJp7H+5FJfNmVyOxSazCJtdsDvSZKaUf09KiFb4Q1Jck+wGb/HAU2WsEFAvV01BThQO0 yAUhUO5OxrlimU06PE2q+LrBcyFAFy3JLLd9ueCAKLIw3wet9S6unV+nTixO8bY/C1gHHi Q69XnkRQRkRzGVV6XUCwjFbJ8pOgVoRkeHZ0ag8T/hbt3268cYUgK+kPpyddrqQevdV3x/ Iq/RtXZitnG3MrtrfNrblnRS+Gjbuy8LTRWfeVx2N+PRoMa694GEJMO+dzxrPa3l3fPJM1 peGihEqQ57CJQFFxsbwI3Dx6rZs20J0SNMKVQUoBW9qBKepX6+RVXmsFiO20rw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=Hd1T4ecc; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.86 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=Hd1T4ecc; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 611342360D X-Spam-Score: -2.86 X-Migadu-Scanner: scn1.migadu.com X-TUID: ToZl3xtGe35W diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 8a4ac37abf..5739c759de 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -27391,6 +27391,66 @@ (define-public python-versioneer process.") (license license:public-domain))) +(define-public python-hatch-vcs + ;; Tags are not accurate; just use the commit itself. + (let ((commit "367daedb23ba906f3e0714c64392fdd6ffa69ab2") + (revision "1")) + (package + (name "python-hatch-vcs") + (version (git-version "0.2.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ofek/hatch-vcs") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0nlnv32jqiz8ikc013h5simmiqqg0qa7pm0qcbd8yiqq1p43iw05")))) + (build-system python-build-system) + (inputs (list python-pypa-build + python-pathspec + python-pluggy-1.0 + python-editables + git + python-hatchling-bootstrap + python-typing-extensions)) + (native-inputs (list python-pytest + ;; python-setuptools-scm-6.4 minimum + python-setuptools-scm-7)) + (arguments + (list #:phases #~(modify-phases %standard-phases + (replace 'build + (lambda _ + (setenv "SOURCE_DATE_EPOCH" "315532800") + (invoke "python" + "-m" + "build" + "--wheel" + "--no-isolation" + "."))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((whl (car (find-files "dist" "\\.whl$")))) + (invoke "pip" + "--no-cache-dir" + "--no-input" + "install" + "--no-deps" + "--prefix" + #$output + whl)))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vvv"))))))) ;) + (home-page "https://ofek.dev/projects/hatch/") + (synopsis "Plugin for @code{python-hatch} to include versions") + (description + "This plugin defines a version-control syntax for use with +@code{toml} files intended for use with @code{python-hatch}.") + (license license:expat)))) + (define-public python-gamera (package (name "python-gamera") -- 2.37.3