ton-python.scm 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. (define-module (ton-python)
  2. #:use-module (guix packages)
  3. #:use-module (guix download)
  4. #:use-module (guix build-system python)
  5. #:use-module ((guix licenses) #:prefix license:)
  6. #:use-module (gnu packages)
  7. #:use-module (gnu packages check)
  8. #:use-module (gnu packages python-xyz)
  9. #:use-module (gnu packages python))
  10. (define-public python-proselint
  11. (package
  12. (name "python-proselint")
  13. (version "0.10.2")
  14. (source
  15. (origin
  16. (method url-fetch)
  17. (uri (pypi-uri "proselint" version))
  18. (sha256
  19. (base32
  20. "017risn0j1bjy9ygzfgphjnyjl4gk7wbrr4qv1vvrlan60wyp1rs"))))
  21. (build-system python-build-system)
  22. (arguments
  23. ;; Disable tests. Rationale: Fails and I (tonton) don't understand
  24. ;; the errors. Should be reenabled. The native inputs below are for
  25. ;; testing.
  26. `(#:tests? #f
  27. #:phases
  28. (modify-phases %standard-phases
  29. (add-after 'unpack 'set-home-directory
  30. ;; error: [Errno 13] Permission denied: '/homeless-shelter'
  31. (lambda _ (setenv "HOME" "/tmp") #t)))))
  32. ;;(native-inputs
  33. ;;`(("python-pytest" ,python-pytest)
  34. ;; ("python-nose" ,python-nose)))
  35. (propagated-inputs
  36. `(("python-click" ,python-click)
  37. ("python-future" ,python-future)
  38. ("python-six" ,python-six)))
  39. (home-page
  40. "http://github.com/amperser/proselint")
  41. (synopsis "Linter for prose")
  42. (description "A linter for prose.")
  43. (license license:bsd-3)))