123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- (define-module (python gscholar)
- #:use-module ((guix licenses) #:prefix license:)
- #:use-module (guix build-system python)
- #:use-module (gnu packages imagemagick)
- #:use-module (gnu packages pdf)
- #:use-module (guix packages)
- #:use-module (guix download))
- (define-public python-gscholar
- (package
- (name "python-gscholar")
- (version "1.6.1")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "gscholar" version))
- (sha256
- (base32
- "1d58dvvjlcm1hbw7n2pffyspi4hcinc0mwna444ps7mzd3inslqq"))))
- (build-system python-build-system)
- (native-inputs
- `(("poppler" ,poppler)))
- (home-page "https://github.com/venthur/gscholar")
- (synopsis
- "Python library to query Google Scholar.")
- (description
- "Python library to query Google Scholar.")
- (license license:expat)))
- (define-public python-pywal
- (package
- (name "python-pywal")
- (version "3.3.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "pywal" version))
- (sha256
- (base32
- "1drha9kshidw908k7h3gd9ws2bl64ms7bjcsa83pwb3hqa9bkspg"))))
- (build-system python-build-system)
- (arguments
- `(#:tests? #f
- #:phases (modify-phases %standard-phases
- (add-after 'unpack 'fix-paths
- (lambda* (#:key inputs #:allow-other-keys)
- (let* ((imagick (assoc-ref inputs "imagemagick"))
- (convert (string-append imagick "/bin/convert")))
- (substitute* "pywal/backends/wal.py"
- (("if shutil\\.which\\(\"magick\"\\):")
- (string-append "return [\"" convert "\"]"))
- (("return \\[\"magick\", \"convert\"\\]")
- "")))
- #t)))))
- (home-page "https://github.com/dylanaraps/pywal")
- (inputs
- `(("imagemagick" ,imagemagick)))
- (synopsis
- "Generate and change color-schemes on the fly")
- (description
- "Generate and change color-schemes on the fly")
- (license license:expat)))
|