summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/image.scm32
1 files changed, 20 insertions, 12 deletions
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 9abe436279b..a4733d3b5b7 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -97,6 +97,7 @@
97 #:use-module (gnu packages popt) 97 #:use-module (gnu packages popt)
98 #:use-module (gnu packages pkg-config) 98 #:use-module (gnu packages pkg-config)
99 #:use-module (gnu packages python) 99 #:use-module (gnu packages python)
100 #:use-module (gnu packages python-build)
100 #:use-module (gnu packages python-check) 101 #:use-module (gnu packages python-check)
101 #:use-module (gnu packages python-xyz) 102 #:use-module (gnu packages python-xyz)
102 #:use-module (gnu packages qt) 103 #:use-module (gnu packages qt)
@@ -121,6 +122,7 @@
121 #:use-module (guix build-system copy) 122 #:use-module (guix build-system copy)
122 #:use-module (guix build-system guile) 123 #:use-module (guix build-system guile)
123 #:use-module (guix build-system meson) 124 #:use-module (guix build-system meson)
125 #:use-module (guix build-system pyproject)
124 #:use-module (guix build-system python) 126 #:use-module (guix build-system python)
125 #:use-module (guix build-system qt) 127 #:use-module (guix build-system qt)
126 #:use-module (guix build-system scons) 128 #:use-module (guix build-system scons)
@@ -1882,22 +1884,28 @@ PNG, and performs PNG integrity checks and corrections.")
1882(define-public imgp 1884(define-public imgp
1883 (package 1885 (package
1884 (name "imgp") 1886 (name "imgp")
1885 (version "2.9") 1887 ;; 2.9 was released in 2023
1888 (properties '((commit . "00b2b520964f22ca5b6e0c7d7cb07ce7a755cea7")
1889 (revision . "0")))
1890 (version (git-version "2.9"
1891 (assoc-ref properties 'revision)
1892 (assoc-ref properties 'commit)))
1886 (source 1893 (source
1887 (origin 1894 (origin
1888 (method url-fetch) 1895 (method git-fetch)
1889 (uri (pypi-uri "imgp" version)) 1896 (uri (git-reference
1897 (url "https://github.com/jarun/imgp")
1898 (commit (assoc-ref properties 'commit))))
1899 (file-name (git-file-name name version))
1890 (sha256 1900 (sha256
1891 (base32 "0avdgr4fx643jg9wzwm65y14s56bnrn3hmkw7v0mcyvxn88vxwiq")))) 1901 (base32 "1rgm52agxrc8sirm72ksg6c2zpibjh4kvx1b2c59vx5inb33kfdh"))))
1892 (build-system python-build-system) 1902 (build-system pyproject-build-system)
1893 (arguments 1903 (arguments
1894 `(#:tests? #f ;there are no tests 1904 (list #:test-backend #~'custom
1895 #:phases 1905 ;; There are no actual tests, taken from project's Makefile.
1896 (modify-phases %standard-phases 1906 #:test-flags #~(list "-m" "imgp" "--help")))
1897 ;; setup.py expects the file to be named 'imgp'. 1907 (native-inputs
1898 (add-after 'unpack 'rename-imgp 1908 (list python-setuptools))
1899 (lambda _
1900 (rename-file "imgp.py" "imgp"))))))
1901 (inputs 1909 (inputs
1902 (list python-pillow)) 1910 (list python-pillow))
1903 (home-page "https://github.com/jarun/imgp") 1911 (home-page "https://github.com/jarun/imgp")