~whereiseveryone/guixrus

62df7a4c4f0419ac77fd475f2d6fbcbf8baec29d — jgart 3 months ago c58662d
packages: misc: add tablign
1 files changed, 31 insertions(+), 0 deletions(-)

M guixrus/packages/misc.scm
M guixrus/packages/misc.scm => guixrus/packages/misc.scm +31 -0
@@ 899,3 899,34 @@ an HTTP stream.")
* R5RS: ftp://ftp.cs.indiana.edu/pub/scheme-repository/doc/standards/")
      (license #f))))

(define-public tablign
  (package
    (name "tablign")
    (version "0.3.4")
    (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "tablign" version))
        (sha256
          (base32 "1hircmm7frqis5m7rgdgf80s3ra1pwzvzkhgypkbjasf0pz742s2"))))
    (build-system python-build-system)
    (arguments
      `(#:tests? #f
          #:phases
          (modify-phases %standard-phases
            (add-after 'unpack 'create-setup-py
              (lambda* (#:key outputs #:allow-other-keys)
                (with-output-to-file "setup.py"
                  (lambda _
                    (format #t
                            "~@
                             from setuptools import setup; setup()~@
                             "))))))))
    (propagated-inputs
      (list python-importlib-metadata))
    (home-page "https://github.com/nschloe/tablign")
    (synopsis "Align columns in ASCII tables")
    (description 
"Aligns columns in your ASCII tables on the command line or in vim.")
    (license license:gpl3+)))