[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
41/104: gnu: Add python-pytidylib.
From: |
guix-commits |
Subject: |
41/104: gnu: Add python-pytidylib. |
Date: |
Sun, 17 May 2020 11:36:35 -0400 (EDT) |
nckx pushed a commit to branch core-updates
in repository guix.
commit fb97eb67dc36f3ce787a5a4f652f4a64202b6992
Author: 宋文武 <address@hidden>
AuthorDate: Sat May 16 17:24:16 2020 +0800
gnu: Add python-pytidylib.
* gnu/packages/python-xyz.scm (python-pytidylib, python2-pytidylib): New
variables.
---
gnu/packages/python-xyz.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 657ebab..c26a766 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19862,3 +19862,36 @@ module. @code{cmd2} provides a wealth of features on
top of @code{cmd} to
make your life easier and eliminates much of the boilerplate code which would
be necessary when using @code{cmd}.")
(license license:expat)))
+
+(define-public python-pytidylib
+ (package
+ (name "python-pytidylib")
+ (version "0.3.2")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytidylib" version))
+ (sha256
+ (base32
+ "1wqa9dv5d7swka14rnky862hc7dgk2g3dhlrz57hdn3hb7bwic92"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'qualify-libtidy
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((libtidy (string-append (assoc-ref inputs "tidy")
+ "/lib/libtidy.so")))
+ (substitute* "tidylib/tidy.py"
+ (("ctypes\\.util\\.find_library\\('tidy'\\)")
+ (format #f "'~a'" libtidy)))
+ #t))))))
+ (inputs `(("tidy" ,tidy)))
+ (home-page "https://github.com/countergram/pytidylib")
+ (synopsis "Python wrapper for HTML Tidy library")
+ (description
+ "PyTidyLib is a Python package that wraps the HTML Tidy library. This
+allows you, from Python code, to “fix” invalid (X)HTML markup.")
+ (license license:expat)))
+
+(define-public python2-pytidylib
+ (package-with-python2 python-pytidylib))
- 20/104: gnu: clamav: End snippet in truth., (continued)
- 20/104: gnu: clamav: End snippet in truth., guix-commits, 2020/05/17
- 25/104: gnu: kicad-symbols: Update to 5.1.6., guix-commits, 2020/05/17
- 32/104: gexp: Compilers can now return lowerable objects., guix-commits, 2020/05/17
- 33/104: gexp: Add 'let-system'., guix-commits, 2020/05/17
- 35/104: vm: Use 'let-system'., guix-commits, 2020/05/17
- 36/104: linux-initrd: Silence Guile warnings., guix-commits, 2020/05/17
- 37/104: services: shepherd: Silence Guile warnings., guix-commits, 2020/05/17
- 38/104: gnu: matcha-theme: Update to 2020-05-09., guix-commits, 2020/05/17
- 39/104: gnu: papirus-icon-theme: Update to 20200430., guix-commits, 2020/05/17
- 40/104: gnu: delft-icon-theme: Update to 1.12., guix-commits, 2020/05/17
- 41/104: gnu: Add python-pytidylib.,
guix-commits <=
- 46/104: gnu: fulcrum: Update to 1.1.1., guix-commits, 2020/05/17
- 49/104: gnu: zsh-autosuggestions: Update to 0.6.4., guix-commits, 2020/05/17
- 52/104: gnu: st: Update to 0.8.3., guix-commits, 2020/05/17
- 29/104: gnu: kicad: Re-use common fields in add-ons., guix-commits, 2020/05/17
- 42/104: gnu: Add rawdog., guix-commits, 2020/05/17
- 43/104: gnu: Add openjdk13., guix-commits, 2020/05/17
- 44/104: gnu: Add openjdk14., guix-commits, 2020/05/17
- 47/104: gnu: flowee: Update to 2020.03.3., guix-commits, 2020/05/17
- 48/104: gnu: wine-staging-patchset-data: Update to 5.8., guix-commits, 2020/05/17
- 51/104: gnu: Don't use NAME in (gnu packages suckless) URIs., guix-commits, 2020/05/17