diff options
| author | Christopher Baines <mail@cbaines.net> | 2020-10-27 09:45:34 +0000 |
|---|---|---|
| committer | Christopher Baines <mail@cbaines.net> | 2020-10-28 16:53:01 +0000 |
| commit | f6839fed5f2052fd257b4af73effb10dcd9bf35b (patch) | |
| tree | ac249369f908c8f83c1250bea50723c5a0d35ea5 /gnu | |
| parent | 36c74e27a830cef8c63973f6a35138209dfd26ae (diff) | |
gnu: Add pwclient.
* gnu/packages/patchutils.scm (pwclient): New variable.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/patchutils.scm | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/gnu/packages/patchutils.scm b/gnu/packages/patchutils.scm index 12dd472c688..da0f13a01e7 100644 --- a/gnu/packages/patchutils.scm +++ b/gnu/packages/patchutils.scm | |||
| @@ -468,3 +468,57 @@ patches, and displays the patches along with comments and state information. | |||
| 468 | Users can login allowing them to change the state of patches.") | 468 | Users can login allowing them to change the state of patches.") |
| 469 | (home-page "http://jk.ozlabs.org/projects/patchwork/") | 469 | (home-page "http://jk.ozlabs.org/projects/patchwork/") |
| 470 | (license gpl2+))) | 470 | (license gpl2+))) |
| 471 | |||
| 472 | (define-public pwclient | ||
| 473 | (package | ||
| 474 | (name "pwclient") | ||
| 475 | (version "1.3.0") | ||
| 476 | (source (origin | ||
| 477 | (method git-fetch) | ||
| 478 | (uri (git-reference | ||
| 479 | (url "https://github.com/getpatchwork/pwclient") | ||
| 480 | (commit version))) | ||
| 481 | (file-name (git-file-name name version)) | ||
| 482 | (sha256 | ||
| 483 | (base32 | ||
| 484 | "1xckwvcqklzpyh3xs4k2zm40ifp0q5fdkj2vmgb8vhfvl1ivs6jv")))) | ||
| 485 | (build-system python-build-system) | ||
| 486 | (arguments | ||
| 487 | `(#:phases | ||
| 488 | (modify-phases %standard-phases | ||
| 489 | (add-after 'unpack 'patch-requirements | ||
| 490 | (lambda _ | ||
| 491 | (substitute* "test-requirements.txt" | ||
| 492 | ;; The pytest requirement is unnecessarily strict | ||
| 493 | (("pytest>=3.0,<5.0;") | ||
| 494 | "pytest>=3.0,<6.0;")) | ||
| 495 | #t)) | ||
| 496 | (add-before 'build 'set-PBR_VERSION | ||
| 497 | (lambda _ | ||
| 498 | (setenv "PBR_VERSION" | ||
| 499 | ,version) | ||
| 500 | #t)) | ||
| 501 | (replace 'check | ||
| 502 | (lambda* (#:key tests? #:allow-other-keys) | ||
| 503 | (when tests? | ||
| 504 | (invoke "pytest")) | ||
| 505 | #t)) | ||
| 506 | (add-after 'install 'install-man-page | ||
| 507 | (lambda* (#:key outputs #:allow-other-keys) | ||
| 508 | (install-file "man/pwclient.1" | ||
| 509 | (string-append | ||
| 510 | (assoc-ref outputs "out") | ||
| 511 | "/share/man/man1")) | ||
| 512 | #t))))) | ||
| 513 | (native-inputs | ||
| 514 | `(("python-pbr" ,python-pbr) | ||
| 515 | ("python-pytest" ,python-pytest) | ||
| 516 | ("python-pytest-cov" ,python-pytest-cov) | ||
| 517 | ("python-mock" ,python-mock))) | ||
| 518 | (home-page | ||
| 519 | "https://github.com/getpatchwork/pwclient") | ||
| 520 | (synopsis "Command-line client for the Patchwork patch tracking tool") | ||
| 521 | (description | ||
| 522 | "pwclient is a VCS-agnostic tool for interacting with Patchwork, the | ||
| 523 | web-based patch tracking system.") | ||
| 524 | (license gpl2+))) | ||
