summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/version-control.scm78
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
1853cgit."))) 1853cgit.")))
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
1889repository. For each reference that was changed, it emits one ReferenceChange 1899repository. For each reference that was changed, it emits one ReferenceChange
1890email summarizing how the reference was changed, followed by one Revision 1900email summarizing how the reference was changed, followed by one Revision
1891email for each new commit that was introduced by the reference change. 1901email for each new commit that was introduced by the reference change.
1892 1902
1893This script is designed to be used as a post-receive hook in a Git 1903This script is designed to be used as a post-receive hook in a Git
1894repository") 1904repository")
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