gnu: stapler: Update to 1.0.0.
* gnu/packages/pdf.scm (stapler): Update to 1.0.0. [source]: Fetch from pypi. [inputs]: Remove python2-pypdf2. [propagated-inputs]: Add python-more-itertools and python-pypdf2. [arguments]: Remove #:python argument. Replace 'fix-pypdf-version-requirement phase with 'fix-more-itertools-version-requirement phase.master
parent
4764e83ce9
commit
09dfb0c466
|
@ -1317,31 +1317,28 @@ rendering of the file through the Pango Cairo back end.")
|
||||||
(define-public stapler
|
(define-public stapler
|
||||||
(package
|
(package
|
||||||
(name "stapler")
|
(name "stapler")
|
||||||
(version "0.3.2")
|
(version "1.0.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method url-fetch)
|
||||||
(uri (git-reference
|
(uri (pypi-uri "stapler" version))
|
||||||
(url "https://github.com/hellerbarde/stapler")
|
|
||||||
(commit version)))
|
|
||||||
(file-name (git-file-name name version))
|
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"06w7xanzr7cicqik62g7zqs57j4y6fc7hflrc1rlmphxx40hkg6r"))))
|
"0b2lbm3f79cdxcsagwhzihbzwahjabxqmbws0c8ki25gpdnygdd7"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(inputs
|
|
||||||
`(("python2-pypdf2" ,python2-pypdf2)))
|
|
||||||
(arguments
|
(arguments
|
||||||
`(#:python ,python-2
|
'(#:phases
|
||||||
#:phases
|
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'fix-pypdf-version-requirement
|
(add-after 'unpack 'fix-more-itertools-version-requirement
|
||||||
;; A PyPDF2 version requirement of 1.25.1 is hard-coded in
|
|
||||||
;; setup.py. Relax it to work with any version of PyPDF2.
|
|
||||||
(lambda _
|
(lambda _
|
||||||
|
;; Tests require an version of the more-itertools module older
|
||||||
|
;; than the one we have packaged.
|
||||||
(substitute* "setup.py"
|
(substitute* "setup.py"
|
||||||
(("PyPDF2==1.25.1") "PyPDF2"))
|
(("more-itertools>=2\\.2,<6\\.0\\.0") "more-itertools>=2.2"))
|
||||||
#t)))))
|
#t)))))
|
||||||
|
(propagated-inputs
|
||||||
|
`(("python-more-itertools" ,python-more-itertools)
|
||||||
|
("python-pypdf2" ,python-pypdf2)))
|
||||||
(home-page "https://github.com/hellerbarde/stapler")
|
(home-page "https://github.com/hellerbarde/stapler")
|
||||||
(synopsis "PDF manipulation tool")
|
(synopsis "PDF manipulation tool")
|
||||||
(description "Stapler is a pure Python alternative to PDFtk, a tool for
|
(description "Stapler is a pure Python alternative to PDFtk, a tool for
|
||||||
|
|
Reference in New Issue