summary refs log tree commit diff
path: root/pkgs/development/python-modules/clf
diff options
context:
space:
mode:
authorElis Hirwing <elis@hirwing.se>2018-03-31 18:26:30 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2018-04-04 19:45:59 +0200
commit0c82d6899193789954b2e82ce30abe5e57a5d018 (patch)
tree6363c7cfbce3a606a4d1eed3acdfee091a708bb4 /pkgs/development/python-modules/clf
parent3c991104a0d29bbdb5c79cc10a8be8dc95952fae (diff)
downloadnixpkgs-0c82d6899193789954b2e82ce30abe5e57a5d018.tar
nixpkgs-0c82d6899193789954b2e82ce30abe5e57a5d018.tar.gz
nixpkgs-0c82d6899193789954b2e82ce30abe5e57a5d018.tar.bz2
nixpkgs-0c82d6899193789954b2e82ce30abe5e57a5d018.tar.lz
nixpkgs-0c82d6899193789954b2e82ce30abe5e57a5d018.tar.xz
nixpkgs-0c82d6899193789954b2e82ce30abe5e57a5d018.tar.zst
nixpkgs-0c82d6899193789954b2e82ce30abe5e57a5d018.zip
pythonPackages.clf: Move to own file
Diffstat (limited to 'pkgs/development/python-modules/clf')
-rw-r--r--pkgs/development/python-modules/clf/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/clf/default.nix b/pkgs/development/python-modules/clf/default.nix
new file mode 100644
index 00000000000..ca91829adef
--- /dev/null
+++ b/pkgs/development/python-modules/clf/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, buildPythonPackage, fetchPypi
+, docopt, requests, pygments }:
+
+buildPythonPackage rec {
+  pname = "clf";
+  version = "0.5.2";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "04lqd2i4fjs606b0q075yi9xksk567m0sfph6v6j80za0hvzqyy5";
+  };
+
+  patchPhase = ''
+    sed -i 's/==/>=/' requirements.txt
+  '';
+
+  propagatedBuildInputs = [ docopt requests pygments ];
+
+  # Error when running tests:
+  # No local packages or download links found for requests
+  doCheck = false;
+
+  meta = with stdenv.lib; {
+    homepage = https://github.com/ncrocfer/clf;
+    description = "Command line tool to search snippets on Commandlinefu.com";
+    license = licenses.mit;
+    maintainers = with maintainers; [ koral ];
+  };
+}