[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#31121] [PATCH 3/3] gnu: Add osc.
From: |
Marius Bakke |
Subject: |
[bug#31121] [PATCH 3/3] gnu: Add osc. |
Date: |
Tue, 17 Apr 2018 00:04:28 +0200 |
User-agent: |
Notmuch/0.26.1 (https://notmuchmail.org) Emacs/25.3.1 (x86_64-pc-linux-gnu) |
Tomáš Čech <address@hidden> writes:
> * gnu/packages/python.scm (osc): New variable.
Woo, awesome! :-)
I wonder if this could go in 'build-tools.scm' since it's not really a
generic Python library in the traditional sense. Or maybe we should add
an 'obs' module?
> +(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"))
This line is too long (I believe guix lint will agree).
> + (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
Nit-pick: Please use capitalisation and punctuation in comments.
> + (rename-file
> + (string-append bin "osc-wrapper.py")
> + (string-append bin "osc"))
> + ;; unused and broken script
... and here.
> + (delete-file (string-append bin "osc_hotshot.py"))
> + #t))))))
> + (inputs
> + `(("python2-urlgrabber" ,python2-urlgrabber)
> + ("python2-pycurl" ,python2-pycurl)))
> + (propagated-inputs
> + `(("python2-m2crypto" ,python2-m2crypto)))
Why is m2crypto propagated, but the others are not? Does the automatic
wrapper not take care of it?
> + (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
Again, full sentences please :-) "@command{osc} is a command line interface...".
> +to checkout, commit, perform reviews etc. Vast majority of the OBS
^^^ s/Vast/The vast/
> +functionality is available via commands and the rest can be reached via
> direct
> +API calls.")
> + (license license:gpl2+)))
> --
> 2.17.0
Can you send updated patches?
signature.asc
Description: PGP signature
- [bug#31121] [PATCH 1/3] gnu: Add python2-urlgrabber, Tomáš Čech, 2018/04/10
- [bug#31121] [PATCH 2/3] gnu: Add python-m2crypto, python2-m2crypto., Tomáš Čech, 2018/04/10
- [bug#31121] [PATCH 3/3] gnu: Add osc., Tomáš Čech, 2018/04/10
- [bug#31121] [PATCH 3/3] gnu: Add osc., Tomáš Čech, 2018/04/17
- [bug#31121] [PATCH 3/3] gnu: Add osc., Marius Bakke, 2018/04/18
- [bug#31121] [PATCH 3/3] gnu: Add osc., Tomáš Čech, 2018/04/18
- [bug#31121] [PATCH 3/3] gnu: Add osc., Marius Bakke, 2018/04/19
[bug#31121] [PATCH 2/3] gnu: Add python-m2crypto, python2-m2crypto., Marius Bakke, 2018/04/16
[bug#31121] [PATCH 1/3] gnu: Add python2-urlgrabber, Marius Bakke, 2018/04/16