localslackirc.scm 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. (define-module (python localslackirc)
  2. #:use-module ((guix licenses) #:prefix license:)
  3. #:use-module (guix build-system python)
  4. #:use-module (gnu packages python)
  5. #:use-module (gnu packages python-xyz)
  6. #:use-module (gnu packages python-web)
  7. #:use-module (gnu packages time)
  8. #:use-module (guix packages)
  9. #:use-module (guix download))
  10. (define-public python-typedload
  11. (package
  12. (name "python-typedload")
  13. (version "2.0")
  14. (source
  15. (origin
  16. (method url-fetch)
  17. (uri (pypi-uri "typedload" version))
  18. (sha256
  19. (base32
  20. "050yvpaqv00r7lg3341iv90j2vjsj64ifqhphiz68llycmia8gn8"))))
  21. (build-system python-build-system)
  22. (home-page "https://github.com/ltworf/typedload")
  23. (synopsis
  24. "Load and dump data from json-like format into typed data structures")
  25. (description
  26. "Load and dump data from json-like format into typed data structures")
  27. (license #f)))
  28. (define-public localslackirc
  29. (package
  30. (name "localslackirc")
  31. (version "1.7")
  32. (source
  33. (origin
  34. (method url-fetch)
  35. (uri "https://github.com/ltworf/localslackirc/releases/download/1.7/localslackirc_1.7.orig.tar.gz")
  36. (sha256
  37. (base32
  38. "14cx0wjz7rqhpx0b6fl89gnp5pr5ncrgbpfl8hzh7fll93c1jkh0"))
  39. (modules '((guix build utils)))
  40. (snippet
  41. '(begin
  42. (substitute* "Makefile"
  43. ;; do not leak information about the build host
  44. (("/usr/")
  45. "/"))
  46. #t))))
  47. (build-system python-build-system)
  48. (arguments
  49. `(#:tests? #f
  50. #:phases
  51. (modify-phases %standard-phases
  52. (delete 'build)
  53. (delete 'check)
  54. ;; (wrap-program (string-append newbin "/fiologparser_hist.py")
  55. ;; `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
  56. (replace 'install
  57. (lambda* (#:key outputs #:allow-other-keys)
  58. (let* ((out (assoc-ref outputs "out")))
  59. (invoke "make" (string-append "DESTDIR=" out) "install"))
  60. #t))
  61. (add-after 'install 'wrap
  62. (lambda* (#:key outputs #:allow-other-keys)
  63. (let ((out (assoc-ref outputs "out"))
  64. (python-path (getenv "PYTHONPATH")))
  65. (wrap-program (string-append out "/bin/localslackirc")
  66. `("PYTHONPATH" ":" prefix (,python-path))))
  67. #t)))))
  68. (propagated-inputs
  69. `(("python-requests" ,python-requests)
  70. ("python-websocket-client" ,python-websocket-client)
  71. ("python-typedload" ,python-typedload)))
  72. (home-page "https://github.com/ltworf/localslackirc")
  73. (synopsis
  74. "TODO")
  75. (description
  76. "TODO")
  77. (license #f)))
  78. localslackirc