From mboxrd@z Thu Jan 1 00:00:00 1970 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 Subject: [bug#40025] [PATCH] Add gitless package definition. Resent-Message-ID: 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 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> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 40025@debbugs.gnu.org --- 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))) -- 2.20.1