From patchwork Wed Mar 11 15:11:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "John D. Boy" X-Patchwork-Id: 20639 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 7E3E227BBEA; Wed, 11 Mar 2020 17:15:10 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id ED43D27BBE4 for ; Wed, 11 Mar 2020 17:15:09 +0000 (GMT) Received: from localhost ([::1]:56004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jC4wn-0005uy-FD for patchwork@mira.cbaines.net; Wed, 11 Mar 2020 13:15:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58326) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jC3Mx-0004pm-Nx for guix-patches@gnu.org; Wed, 11 Mar 2020 11:34:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jC3Mw-00085E-Cv for guix-patches@gnu.org; Wed, 11 Mar 2020 11:34:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49395) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jC3Mw-000854-0U for guix-patches@gnu.org; Wed, 11 Mar 2020 11:34:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jC3Mv-0002D6-TP for guix-patches@gnu.org; Wed, 11 Mar 2020 11:34:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40025] [PATCH] Add gitless package definition. Resent-From: "John D. Boy" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 11 Mar 2020 15:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40025 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40025@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15839407878356 (code B ref -1); Wed, 11 Mar 2020 15:34:01 +0000 Received: (at submit) by debbugs.gnu.org; 11 Mar 2020 15:33:07 +0000 Received: from localhost ([127.0.0.1]:55368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jC3M2-0002Ah-In for submit@debbugs.gnu.org; Wed, 11 Mar 2020 11:33:07 -0400 Received: from lists.gnu.org ([209.51.188.17]:52941) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jC31O-00018r-Sq for submit@debbugs.gnu.org; Wed, 11 Mar 2020 11:11:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54061) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jC31M-0002Mc-KJ for guix-patches@gnu.org; Wed, 11 Mar 2020 11:11:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jC31L-0005ZK-Fd for guix-patches@gnu.org; Wed, 11 Mar 2020 11:11:44 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:55481) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jC31L-0005Wz-2n for guix-patches@gnu.org; Wed, 11 Mar 2020 11:11:43 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 742FE2249C for ; Wed, 11 Mar 2020 11:11:40 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 11 Mar 2020 11:11:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bius.moe; h=from :to:subject:date:message-id:mime-version :content-transfer-encoding; s=fm2; bh=WbT34yf2MN+kwCO6XgwhfG2Uxg HsWG0pC8Q8OhNSdH4=; b=cM5X9xdjRLe0j3m3kEdZ6V0SP10AdsuZD4nxm0ghXf DNj4YR9WLNKnRgbwayJ/ZsmSSWAL2AUXezOrmZTB5I4XMRVUR/IBbvjPrJie78O+ kd2ri67e4NECIRMgzGmZ20fajJqmoVRwJx2vSFUZDKkyaTJNmBANIwaDvhVxE2jQ si2AqSXRxNSf388FHf1dzUDcEK+dObwFOU6xcAWom/acKkAsZf/e3RgZp6PI4mmy xWfGxN5sBcPQsY+7HqiSZGeW4N83p+P/AcMrh6+Uw5Po2lfiJDcuXz5VwxUuh/EM jP8OkADj4vgjCcSp+NiCt5N8fA76yPd/vGjSPXMz+qgw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=WbT34yf2MN+kwCO6X gwhfG2UxgHsWG0pC8Q8OhNSdH4=; b=JsGMqjRwdAyUjIQbVyGOW4sxGq9sBmzyn MIFss3CKfoqtyapra724DIJdtGJ7g4cMXJ41pSSNagdu3D0tGBqVBKVwUxaYG25O VObAUvAFT9FHuBt1KHHxROXDqpK4UwRzFXEc3D77TlfnitcodKtYWgG3FsSzvHsi r+xVVHWP0cWVeAFKqjAZcwi6ddChIiFRMkhJddNSgxrJktmPD212XNvkrrAz345k TgotaPeiI5fZe/OcsGKXPIk41LwheV8NiAl33HIl9IRQbUjt0rxS309WCKmJ71dJ zrB5dvvYhKtMWenlEEGeLMe0U7XcGQIAXzNXVU6u9JYudt3jl+EcQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddvvddgjeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepfdflohhhnhcuffdruceuohihfdcuoehjsghohiessghiuhhsrdhm ohgvqeenucffohhmrghinhepghhithhhuhgsrdgtohhmpdhgihhtlhgvshhsrdgtohhmne cukfhppeekfedrudeivddrvdefuddrvddutdenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehjsghohiessghiuhhsrdhmohgv X-ME-Proxy: Received: from localhost (83-162-231-210.ip.xs4all.nl [83.162.231.210]) by mail.messagingengine.com (Postfix) with ESMTPA id ABFB1328006B for ; Wed, 11 Mar 2020 11:11:39 -0400 (EDT) From: "John D. Boy" Date: Wed, 11 Mar 2020 16:11:37 +0100 Message-Id: <20200311151137.32198-1-jboy@bius.moe> X-Mailer: git-send-email 2.23.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Mailman-Approved-At: Wed, 11 Mar 2020 11:33:05 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-Mailman-Approved-At: Wed, 11 Mar 2020 13:15:00 -0400 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches --- gnu/packages/version-control.scm | 50 ++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 52626f8076..7aac933d15 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -2373,3 +2373,53 @@ interrupted, published, and collaborated on while in progress.") videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server.") (license license:expat))) + +(define-public gitless + (package + (name "gitless") + ;; The PyPI package lacks the test suite, so we build it directly from the + ;; git repository. + (version "0.8.8") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gitless-vcs/gitless") + (commit (string-append "v" version)))) + (sha256 + (base32 "048kl27zjr68hgs70g3l98ci9765wxva6azzrhcdys7nsdd493n6")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'build 'loosen-requirements + (lambda _ + (substitute* "setup.py" + ;; Don't insist on an older version of pygit2. + (("pygit2==") "pygit2>=")) + (substitute* "requirements.txt" + (("pygit2==") "pygit2>=")) + #t)) + (add-before 'check 'prepare-for-tests + (lambda _ + ;; Find the 'gl' command. + (rename-file "gl.py" "gl") + (setenv "PATH" (string-append (getcwd) ":" (getenv "PATH"))) + ;; The tests try to run git as if it were already set up. + (setenv "HOME" (getcwd)) + (invoke "git" "config" "--global" "user.email" "git@example.com") + (invoke "git" "config" "--global" "user.name" "guix") + #t))))) + (native-inputs + ;; Required for tests. + `(("git-minimal" ,git-minimal))) + (propagated-inputs + `(("python-clint" ,python-clint) + ("python-pygit2" ,python-pygit2) + ("python-sh" ,python-sh))) + (home-page "https://gitless.com") + (synopsis + "A version control system built on top of Git") + (description + "A version control system built on top of Git") + (license license:expat)))