From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37696) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5pbM-0001j8-3c for guix-patches@gnu.org; Tue, 10 Apr 2018 05:30:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f5pbH-0001rb-TG for guix-patches@gnu.org; Tue, 10 Apr 2018 05:30:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:36676) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f5pbH-0001qz-QG for guix-patches@gnu.org; Tue, 10 Apr 2018 05:30:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f5pbH-00013v-Iy for guix-patches@gnu.org; Tue, 10 Apr 2018 05:30:03 -0400 Subject: [bug#31121] [PATCH 3/3] gnu: Add osc. Resent-Message-ID: From: =?UTF-8?Q?Tom=C3=A1=C5=A1_?= =?UTF-8?Q?=C4=8Cech?= Date: Tue, 10 Apr 2018 11:29:35 +0200 Message-Id: <20180410092935.5915-2-sleep_walker@gnu.org> In-Reply-To: <20180410092935.5915-1-sleep_walker@gnu.org> References: <20180410092935.5915-1-sleep_walker@gnu.org> 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: 31121@debbugs.gnu.org * gnu/packages/python.scm (osc): New variable. --- gnu/packages/python.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index d84aae1fb..86a706e38 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -13184,3 +13184,44 @@ ZSmime: An S/MIME messenger for Zope.") (define-public python2-m2crypto (package-with-python2 python-m2crypto)) + +(define-public osc + (package + (name "osc") + (version "0.162.1") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/openSUSE/" name "/archive/" version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0b4kpm96ns4smqyfjysbk2p78d36x44xprpna8zz85q1y5xn57aj")))) + (build-system python-build-system) + (arguments + `(#:python ,python-2 + #:phases + (modify-phases %standard-phases + (add-after 'install 'fix-filename-and-remove-unused + (lambda* (#:key outputs #:allow-other-keys) + (let ((bin (string-append (assoc-ref outputs "out") "/bin/"))) + ;; osc tool is renamed in spec file, not setup.py, let's do + ;; that too + (rename-file + (string-append bin "osc-wrapper.py") + (string-append bin "osc")) + ;; unused and broken script + (delete-file (string-append bin "osc_hotshot.py")) + #t)))))) + (inputs + `(("python2-urlgrabber" ,python2-urlgrabber) + ("python2-pycurl" ,python2-pycurl))) + (propagated-inputs + `(("python2-m2crypto" ,python2-m2crypto))) + (home-page "https://github.com/openSUSE/osc") + (synopsis "Open Build Service command line tool") + (description "Command line interface to Open Build Service. It allows you +to checkout, commit, perform reviews etc. Vast majority of the OBS +functionality is available via commands and the rest can be reached via direct +API calls.") + (license license:gpl2+))) -- 2.17.0