Subject: bug#29137: closed (Re: [bug#29137] [PATCH] gnu: Add python-clf.)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 20 Nov 2017 06:34:03 +0000

Your bug report

#29137: [PATCH] gnu: Add python-clf.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
29137: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=29137
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#29137] [PATCH] gnu: Add python-clf.
From: Oleg Pykhalov <[email-masked]>
To: Marius Bakke <[email-masked]>
Cc: Oleg Pykhalov <[email-masked]>, [email-masked], [email-masked]
Date: Mon, 20 Nov 2017 09:33:23 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello Marius,

Marius Bakke <[email-masked]> writes:

>> Release tarball from pypi doesn't include test_clf.py.  So I pulled it
>> from git master branch.  Almost all tests require internet connection.
>
> Odd that this file would be taken out.  Anyway thanks for including it.
> I wouldn't bother binding the package in a let for a variable that's
> only used once as a native-input, but no strong opinion.  LGTM.

OK, then I will finally add a dot at the end of the description and add
"https://" to synopsis url.

Pushed as 036f1eedcc46e50fda525a65eef5de1797ce4f4d

Thanks,
Oleg.

Subject: [PATCH] gnu: Add python-clf.
From: Oleg Pykhalov <[email-masked]>
To: [email-masked]
Date: Fri, 03 Nov 2017 19:37:33 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

From 96a78a88650481961083541c0cc93ef8c082c6bf Mon Sep 17 00:00:00 2001
From: Oleg Pykhalov <[email-masked]>
Date: Fri, 3 Nov 2017 18:39:17 +0300
Subject: [PATCH] gnu: Add python-clf.

* gnu/packages/web.scm (python-clf): New variable.
---
 gnu/packages/web.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index eea8bb63a..eed120eb2 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -5170,6 +5170,31 @@ internetarchive python module for programatic access to archive.org.")
   (package-with-python2
    (strip-python2-variant python-internetarchive)))
 
+(define-public python-clf
+  (package
+    (name "python-clf")
+    (version "0.5.7")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "clf" version))
+       (sha256
+        (base32
+         "0zlkzqnpz7a4iavsq5vaz0nf5nr7qm5znpg1vlpz6rwnx6hikjdb"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-docopt" ,python-docopt)
+       ("python-pygments" ,python-pygments)
+       ("python-requests" ,python-requests)))
+    (home-page "https://github.com/ncrocfer/clf")
+    (synopsis "Search code snippets on @url{commandlinefu.com}")
+    (description "@code{clf} is a command line tool for searching code
+snippets on @url{commandlinefu.com}")
+    (license l:expat)))
+
+(define-public python2-clf
+  (package-with-python2 python-clf))
+
 (define-public r-shiny
   (package
     (name "r-shiny")
-- 
2.14.3