From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39968) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8lA6-0006ZD-MJ for guix-patches@gnu.org; Wed, 18 Apr 2018 07:22:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8lA2-0006vz-9h for guix-patches@gnu.org; Wed, 18 Apr 2018 07:22:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:50604) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f8lA2-0006vn-65 for guix-patches@gnu.org; Wed, 18 Apr 2018 07:22:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f8lA1-0005Wb-WE for guix-patches@gnu.org; Wed, 18 Apr 2018 07:22:02 -0400 Subject: [bug#31121] [PATCH 3/3] gnu: Add osc. Resent-Message-ID: From: Marius Bakke In-Reply-To: <20180417214042.31132-1-sleep_walker@gnu.org> References: <87sh7udd03.fsf@fastmail.com> <20180417214042.31132-1-sleep_walker@gnu.org> Date: Wed, 18 Apr 2018 13:21:02 +0200 Message-ID: <878t9kbw0x.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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: =?UTF-8?Q?Tom=C3=A1=C5=A1_?= =?UTF-8?Q?=C4=8Cech?= , 31121@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Tom=C3=A1=C5=A1 =C4=8Cech writes: > * gnu/packages/build-tools.scm (osc): New variable. [...] > +(define-public osc > + (package > + (name "osc") ^ Indentation off here too. > + (version "0.162.1") > + (source > + (origin > + (method url-fetch) ^ And here. > + (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 ;; Module is python2 only. ^ Only one semicolon for margin comments. > + #: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/"= ))) > + ;; Main osc tool is renamed in spec file, not setup.py, l= et's > + ;; do that too. > + (rename-file > + (string-append bin "osc-wrapper.py") > + (string-append bin "osc")) > + ;; Remove unused and broken script. > + (delete-file (string-append bin "osc_hotshot.py")) > + #t)))))) > + (inputs > + `(("python2-m2crypto" ,python2-m2crypto) > + ("python2-pycurl" ,python2-pycurl) > + ("python2-urlgrabber" ,python2-urlgrabber))) > + (home-page "https://github.com/openSUSE/osc") > + (synopsis "Open Build Service command line tool") > + (description "@command{osc} is command line interface to Open Build ^^^ ^^^ "is a" "to the" Other than that LGTM. > +Service. It allows you to checkout, commit, perform reviews etc. The v= ast > +majority of the OBS functionality is available via commands and the rest= can > +be reached via direct API calls.") > + (license license:gpl2+))) > --=20 > 2.16.3 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlrXKh4ACgkQoqBt8qM6 VPrKwgf/Rs3tM/u55QBwqE9nUuw0MMIVYSVkm5RW7k13W+bVYnH+P43It2rc/Io5 d8N67M/6AowMG/YXUJt6E78hKpbfT3PzbJjVcOWDNU63K0C1o2FCkvmrMr+AyrPY xNVuvsry79vMQvmVCJ2NSqac6USak5T0uRjH6Mng4kv3/yi0S/gVM3m7DxJjm6hh GdDfkU7AgWYTMtBzOy2TQvRptpjTC1V1KCT4hUy9CPk2Ua+DREy/ByNXTs2eqYkk JcnMy9+6f0fVfcRegFPxQ4Ffc1sa9YXrCiCo2gPCFaTihoW/rfohEakGEVv2ckxW Omahx1UOc04OE8DPw381vmynxnXbEA== =sDhy -----END PGP SIGNATURE----- --=-=-=--