From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1djBB3-0000hA-Oy for guix-patches@gnu.org; Sat, 19 Aug 2017 17:21:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1djBB0-00030X-KM for guix-patches@gnu.org; Sat, 19 Aug 2017 17:21:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:37203) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1djBB0-0002zS-Ew for guix-patches@gnu.org; Sat, 19 Aug 2017 17:21:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1djBB0-0003yd-9W for guix-patches@gnu.org; Sat, 19 Aug 2017 17:21:02 -0400 Subject: [bug#27913] [PATCH 2/2] gnu: Add python-ghp-import. Resent-Message-ID: From: Oleg Pykhalov References: <87d18ebpvs.fsf@gmail.com> <878tj29c9y.fsf@gmail.com> <20170802200128.GA20759@jasmine.lan> <87k21z8di7.fsf_-_@gmail.com> Date: Sun, 20 Aug 2017 00:20:03 +0300 In-Reply-To: <87k21z8di7.fsf_-_@gmail.com> (Oleg Pykhalov's message of "Sun, 20 Aug 2017 00:16:16 +0300") Message-ID: <8760dj8dbw.fsf_-_@gmail.com> MIME-Version: 1.0 Content-Type: text/x-patch Content-Disposition: inline; filename=0002-gnu-Add-python-ghp-import.patch Content-Description: [PATCH 2/2] gnu: Add python-ghp-import. 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: Leo Famulari Cc: 27913@debbugs.gnu.org >From 68ae12d2aaf08e23d48bd6ed785704ffaa3d4da6 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Sun, 20 Aug 2017 00:05:15 +0300 Subject: [PATCH 2/2] gnu: Add python-ghp-import. * gnu/packages/version-control.scm (python-ghp-import, python2-ghp-import): New variable. --- gnu/packages/version-control.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 2e17201a5..da2961e20 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -520,6 +520,40 @@ collaboration using typical untrusted file hosts or services.") a built-in cache to decrease server I/O pressure.") (license license:gpl2))) +(define-public python-ghp-import + (package + (name "python-ghp-import") + (version "0.5.5") + (source + (origin + (method url-fetch) + (uri (string-append + "https://github.com/davisp/ghp-import/archive/" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0x887v690xsac2hzjkpbvp3a6crh3m08mqbk3nb4xwc9dnk869q7")))) + (build-system python-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (add-after 'install 'install-documentation + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (doc (string-append out "/share/doc")) + (licenses (string-append out "/share/licenses"))) + (install-file "README.md" doc) + (install-file "LICENSE" licenses))))))) + (home-page "https://github.com/davisp/ghp-import") + (synopsis "Copy directory to the gh-pages branch") + (description "Script that copies a directory to the gh-pages branch (by +default) of the repository.") + (license license:tumbolia))) + +(define-public python2-ghp-import + (package-with-python2 + (strip-python2-variant python-ghp-import))) + (define-public shflags (package (name "shflags") -- 2.14.1