Subject: Re: bug#26074: [PATCH 1/3] gnu: Add python-htmlmin

From: Catonano <[email-masked]>
Date: Sun, 12 Mar 2017 22:21:16 +0100

2017-03-12 21:40 GMT+01:00 Catonano <[email-masked]>:

> <https://github.com/maxcountryman/flask-login/issues/340>
>
>
What do we do ? Do we skip the tests ? Or do we skip the whole package ?

Anyway, I attach them again as they are now. So you can see yourself
From ff1049bc80b55f63bec34e85b7f0752672b7e025 Mon Sep 17 00:00:00 2001
From: humanitiesNerd <[email-masked]>
Date: Sun, 12 Mar 2017 20:44:47 +0100
Subject: [PATCH 1/3] 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 <[email-masked]>
Date: Sun, 12 Mar 2017 20:46:38 +0100
Subject: [PATCH 2/3] 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 98862f33b1f32a53177776e92bd53e156c8925f0 Mon Sep 17 00:00:00 2001
From: humanitiesNerd <[email-masked]>
Date: Sun, 12 Mar 2017 21:02:08 +0100
Subject: [PATCH 3/3] 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 | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 320bf8487..857ae3280 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -13647,3 +13647,35 @@ 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 ()
+    ;make: *** No rule to make target 'check'.  Stop.
+    ;phase `check' failed after 0.5 seconds
+    (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