From ff1049bc80b55f63bec34e85b7f0752672b7e025 Mon Sep 17 00:00:00 2001 From: humanitiesNerd Date: Sun, 12 Mar 2017 20:44:47 +0100 Subject: [PATCH 1/4] gnu: Add python-htmlmin, python2-htmlmin * gnu/packages/python.scm (python-htmlmin): New variable. * gnu/packkagespython.scm (python2-htmlmin): New variable. --- gnu/packages/python.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index ee785c26e..2b1c12d06 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -13598,3 +13598,28 @@ The distinctive feature of this B-tree is that a node is never copy-on-write. This makes it easy to clone a tree, and modify only the clone, while other processes access the original tree.") (license license:gpl3+))) + +(define-public python-htmlmin + (package + (name "python-htmlmin") + (version "0.1.10") + (source + (origin + (method url-fetch) + (uri (pypi-uri "htmlmin" version)) + (sha256 + (base32 + "0qxa93j3p1ak32qh8d9kshqv8v3z0hkc13dwbhp5cn7sn3xmsp6a")))) + (arguments + `(#:tests? #f)) ;htmlmin has no tests + (build-system python-build-system) + (home-page + "https://htmlmin.readthedocs.org/en/latest/") + (synopsis "Htmlmin is an HTML Minifier") + (description "An HTML minifier that just works. +It comes with safe defaults and an easily configurable set options.") + (license license:bsd-3))) + + +(define-public python2-htmlmin + (package-with-python2 python-htmlmin)) -- 2.12.0 From 48fe031513e64a9810af0d944b3b47b4c5a680ea Mon Sep 17 00:00:00 2001 From: humanitiesNerd Date: Sun, 12 Mar 2017 20:46:38 +0100 Subject: [PATCH 2/4] gnu: Add python-flask-htmlmin, python2-flask-htmlmin * gnu/packages/python.scm (python-flask-htmlmin): New variable. * gnu/packages/python.scm (python2-flask-htmlmin): New variable. --- gnu/packages/python.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 2b1c12d06..320bf8487 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -13623,3 +13623,27 @@ It comes with safe defaults and an easily configurable set options.") (define-public python2-htmlmin (package-with-python2 python-htmlmin)) + +(define-public python-flask-htmlmin + (package + (name "python-flask-htmlmin") + (version "1.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Flask-HTMLmin" version)) + (sha256 + (base32 + "1n6zlq72kakkw0z2jpq6nh74lfsmxybm4g053pwhc14fbr809348")))) + (propagated-inputs + `(("flask" ,python-flask) + ("htmlmin" ,python-htmlmin))) + (build-system python-build-system) + (home-page + "https://github.com/hamidfzm/Flask-HTMLmin") + (synopsis "Add the capability to minify responses while using Flask") + (description "This package implements minification support for Flask responses.") + (license license:bsd-3))) + +(define-public python2-flask-htmlmin + (package-with-python2 python-flask-htmlmin)) -- 2.12.0 From 86780c6327db288eb97551977650bc52712ef547 Mon Sep 17 00:00:00 2001 From: humanitiesNerd Date: Sun, 12 Mar 2017 21:02:08 +0100 Subject: [PATCH 3/4] gnu: Add python-flask-login, python2-flask-login * gnu/packages/python.scm (python-flask-login): New variable. * gnu/packages/python.scm (python2-flask-login): New variable. --- gnu/packages/python.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 320bf8487..bd5fb2068 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -13647,3 +13647,36 @@ It comes with safe defaults and an easily configurable set options.") (define-public python2-flask-htmlmin (package-with-python2 python-flask-htmlmin)) + +(define-public python-flask-login + (package + (name "python-flask-login") + (version "0.4.0") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/maxcountryman/flask-login/archive/" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1pdqp7a2gyb7k06xda004x0fi2w66s6kn2i0ndkqndmg12d83f9w")))) + ;(native-inputs + ; `(("pep8" ,python-pep8))) ;for the tests + (arguments + `(#:tests? #f)) + ;starting phase `check' + ;running "python setup.py" with command "test" and parameters () + ;Checking pep8 compliance... + ;flask_login/login_manager.py:409:29: + ;E122 continuation line missing indentation or outdented + (build-system python-build-system) + (home-page + "https://github.com/maxcountryman/flask-login") + (synopsis "User session management for Flask") + (description "Flask does not provide user session management facilities +so you are required to either roll your own or use an extension.") + (license license:expat))) + +(define-public python2-flask-login + (package-with-python2 python-flask-login)) -- 2.12.0 From 209bf2757597befce633599318e1ae3757a60e99 Mon Sep 17 00:00:00 2001 From: humanitiesNerd Date: Mon, 13 Mar 2017 19:13:19 +0100 Subject: [PATCH 4/4] 2017 humanitiesNerd --- gnu/packages/python.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index bd5fb2068..610f1b2ec 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -36,6 +36,7 @@ ;;; Copyright © 2016, 2017 Thomas Danckaert ;;; Copyright © 2017 Carlo Zancanaro ;;; Copyright © 2017 Frederick M. Muriithi +;;; Copyright © 2017 humanitiesNerd ;;; ;;; This file is part of GNU Guix. ;;; -- 2.12.0