gscholar.scm 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. (define-module (python gscholar)
  2. #:use-module ((guix licenses) #:prefix license:)
  3. #:use-module (guix build-system python)
  4. #:use-module (gnu packages imagemagick)
  5. #:use-module (gnu packages pdf)
  6. #:use-module (guix packages)
  7. #:use-module (guix download))
  8. (define-public python-gscholar
  9. (package
  10. (name "python-gscholar")
  11. (version "1.6.1")
  12. (source
  13. (origin
  14. (method url-fetch)
  15. (uri (pypi-uri "gscholar" version))
  16. (sha256
  17. (base32
  18. "1d58dvvjlcm1hbw7n2pffyspi4hcinc0mwna444ps7mzd3inslqq"))))
  19. (build-system python-build-system)
  20. (native-inputs
  21. `(("poppler" ,poppler)))
  22. (home-page "https://github.com/venthur/gscholar")
  23. (synopsis
  24. "Python library to query Google Scholar.")
  25. (description
  26. "Python library to query Google Scholar.")
  27. (license license:expat)))
  28. (define-public python-pywal
  29. (package
  30. (name "python-pywal")
  31. (version "3.3.0")
  32. (source
  33. (origin
  34. (method url-fetch)
  35. (uri (pypi-uri "pywal" version))
  36. (sha256
  37. (base32
  38. "1drha9kshidw908k7h3gd9ws2bl64ms7bjcsa83pwb3hqa9bkspg"))))
  39. (build-system python-build-system)
  40. (arguments
  41. `(#:tests? #f
  42. #:phases (modify-phases %standard-phases
  43. (add-after 'unpack 'fix-paths
  44. (lambda* (#:key inputs #:allow-other-keys)
  45. (let* ((imagick (assoc-ref inputs "imagemagick"))
  46. (convert (string-append imagick "/bin/convert")))
  47. (substitute* "pywal/backends/wal.py"
  48. (("if shutil\\.which\\(\"magick\"\\):")
  49. (string-append "return [\"" convert "\"]"))
  50. (("return \\[\"magick\", \"convert\"\\]")
  51. "")))
  52. #t)))))
  53. (home-page "https://github.com/dylanaraps/pywal")
  54. (inputs
  55. `(("imagemagick" ,imagemagick)))
  56. (synopsis
  57. "Generate and change color-schemes on the fly")
  58. (description
  59. "Generate and change color-schemes on the fly")
  60. (license license:expat)))