~ruther/guix-local

1e4eaa3c4ae98eef1162fdcaa258d976e192b3d6 — Sharlatan Hellseher 8 months ago bdc386e
gnu: python-user-agents: Switch to pyproject.

* gnu/packages/python-xyz.scm (python-user-agents)[source]: Switch to
git-fetch containing test data.
[build-system]: Switch to pyproejct-build-system.
[arguments] <tests?>: Enable them.
<test-backend>: Use 'unittest.
[native-inputs]: Add python-setuptools.

Change-Id: I502dc4f634e72d06dfd6c9030bef82b2d2765fb9
1 files changed, 12 insertions(+), 8 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +12 -8
@@ 15395,15 15395,19 @@ toolkit.  Use it to build trees of widgets.")
    (name "python-user-agents")
    (version "2.2.0")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "user-agents" version))
       (sha256
        (base32
         "09mddriffm9rkwr30081fy9n3cn976ms8pwc8p8hhlxnilbjavfk"))))
    (build-system python-build-system)
      (origin
        (method git-fetch)
        (uri (git-reference
               (url "https://github.com/selwin/python-user-agents")
               (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
          (base32 "0pcbjqj21c2ixhl414bh2h8khi8y1igzfpkyqwan1pakix0lq45a"))))
    (build-system pyproject-build-system)
    (arguments
     `(#:tests? #f))                  ;missing devices.json test file in release
     (list #:test-backend #~'unittest))
    (native-inputs
     (list python-setuptools))
    (propagated-inputs
     (list python-ua-parser))
    (home-page "https://github.com/selwin/python-user-agents")