diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-12-29 08:45:56 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-31 13:27:01 +0000 |
| commit | 82dd94b3f92d0cda05b9d69b01b081cd8a5a0db6 (patch) | |
| tree | c0ca8ed65b995bcb3aaa41a541d90df6cf41c869 | |
| parent | 693e765bb31b56b787ccd04eb77711a993797636 (diff) | |
gnu: python-git-multimail: Update to 1.6.0-0.747fad4.
* gnu/packages/version-control.scm (python-git-multimail): Update to 1.6.0-0.747fad4.
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:tests?>: Disable them for now.
<#:phases>: Improve style, add 'check phase replacement.
[native-inputs]: Add python-setuptools.
Change-Id: I0bde82b066878252b54404ad973d327fdd677302
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
| -rw-r--r-- | gnu/packages/version-control.scm | 78 |
1 files changed, 44 insertions, 34 deletions
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 8d499867cbc..61800060809 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm | |||
| @@ -1853,46 +1853,56 @@ built-in cache to decrease server I/O pressure. cgit-pink is a fork of | |||
| 1853 | cgit."))) | 1853 | cgit."))) |
| 1854 | 1854 | ||
| 1855 | (define-public python-git-multimail | 1855 | (define-public python-git-multimail |
| 1856 | (package | 1856 | (let ((commit "747fad49038b1f0eea12ab4ad453fb404111fe11") |
| 1857 | (name "python-git-multimail") | 1857 | (revision "0")) |
| 1858 | (version "1.6.0") | 1858 | (package |
| 1859 | (source | 1859 | (name "python-git-multimail") |
| 1860 | (origin | 1860 | (version (git-version "1.6.0" revision commit)) |
| 1861 | (method url-fetch) | 1861 | (source |
| 1862 | (uri (pypi-uri "git-multimail" version)) | 1862 | (origin |
| 1863 | (sha256 | 1863 | (method git-fetch) |
| 1864 | (base32 | 1864 | (uri (git-reference |
| 1865 | "0hwgf2p2dd4z397wj0y558s8xxbkzbsa6yb9n1iax624y7swjng1")))) | 1865 | (url "https://github.com/git-multimail/git-multimail") |
| 1866 | (build-system python-build-system) | 1866 | (commit commit))) |
| 1867 | (arguments | 1867 | (file-name (git-file-name name version)) |
| 1868 | '(#:phases | 1868 | (sha256 |
| 1869 | (modify-phases %standard-phases | 1869 | (base32 "101lm3sxdi844bj91x1sqnjw1lmqv1ir1m2dr2nfv9gap94pvaiw")))) |
| 1870 | (add-after 'unpack 'patch | 1870 | (build-system pyproject-build-system) |
| 1871 | (lambda* (#:key inputs #:allow-other-keys) | 1871 | (arguments |
| 1872 | (substitute* "setup.py" | 1872 | (list |
| 1873 | (("'git-multimail', 'README.rst'") | 1873 | ;; Some tests are failing, but the test suite is not configurable. |
| 1874 | "'README.rst'")) | 1874 | #:tests? #f |
| 1875 | (substitute* "git-multimail/git_multimail.py" | 1875 | #:phases |
| 1876 | (("GIT_EXECUTABLE = 'git'") | 1876 | #~(modify-phases %standard-phases |
| 1877 | (string-append "GIT_EXECUTABLE = '" | 1877 | (add-after 'unpack 'patch |
| 1878 | (assoc-ref inputs "git") "/bin/git" | 1878 | (lambda* (#:key inputs #:allow-other-keys) |
| 1879 | "'")) | 1879 | (substitute* "setup.py" |
| 1880 | (("/usr/sbin/sendmail") | 1880 | (("'git-multimail', 'README.rst'") |
| 1881 | (search-input-file inputs | 1881 | "'README.rst'")) |
| 1882 | "/sbin/sendmail")))))))) | 1882 | (substitute* "git-multimail/git_multimail.py" |
| 1883 | (inputs | 1883 | (("GIT_EXECUTABLE = 'git'") |
| 1884 | (list git sendmail)) | 1884 | (format #f "GIT_EXECUTABLE = '~a'" |
| 1885 | (home-page "https://github.com/git-multimail/git-multimail") | 1885 | (search-input-file inputs "bin/git"))) |
| 1886 | (synopsis "Send notification emails for Git pushes") | 1886 | (("/usr/sbin/sendmail") |
| 1887 | (description | 1887 | (search-input-file inputs "/sbin/sendmail"))))) |
| 1888 | "This hook sends emails describing changes introduced by pushes to a Git | 1888 | (replace 'check |
| 1889 | (lambda* (#:key tests? #:allow-other-keys) | ||
| 1890 | (when tests? | ||
| 1891 | (with-directory-excursion "t" | ||
| 1892 | (invoke "make" "test")))))))) | ||
| 1893 | (native-inputs (list python-setuptools)) | ||
| 1894 | (inputs (list git sendmail)) | ||
| 1895 | (home-page "https://github.com/git-multimail/git-multimail") | ||
| 1896 | (synopsis "Send notification emails for Git pushes") | ||
| 1897 | (description | ||
| 1898 | "This hook sends emails describing changes introduced by pushes to a Git | ||
| 1889 | repository. For each reference that was changed, it emits one ReferenceChange | 1899 | repository. For each reference that was changed, it emits one ReferenceChange |
| 1890 | email summarizing how the reference was changed, followed by one Revision | 1900 | email summarizing how the reference was changed, followed by one Revision |
| 1891 | email for each new commit that was introduced by the reference change. | 1901 | email for each new commit that was introduced by the reference change. |
| 1892 | 1902 | ||
| 1893 | This script is designed to be used as a post-receive hook in a Git | 1903 | This script is designed to be used as a post-receive hook in a Git |
| 1894 | repository") | 1904 | repository") |
| 1895 | (license license:gpl2))) | 1905 | (license license:gpl2)))) |
| 1896 | 1906 | ||
| 1897 | (define-public python-ghp-import | 1907 | (define-public python-ghp-import |
| 1898 | (package | 1908 | (package |
