diff options
author | Elis Hirwing <elis@hirwing.se> | 2018-03-31 18:26:30 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-04-04 19:45:59 +0200 |
commit | 0c82d6899193789954b2e82ce30abe5e57a5d018 (patch) | |
tree | 6363c7cfbce3a606a4d1eed3acdfee091a708bb4 /pkgs/development/python-modules/clf | |
parent | 3c991104a0d29bbdb5c79cc10a8be8dc95952fae (diff) | |
download | nixlib-0c82d6899193789954b2e82ce30abe5e57a5d018.tar nixlib-0c82d6899193789954b2e82ce30abe5e57a5d018.tar.gz nixlib-0c82d6899193789954b2e82ce30abe5e57a5d018.tar.bz2 nixlib-0c82d6899193789954b2e82ce30abe5e57a5d018.tar.lz nixlib-0c82d6899193789954b2e82ce30abe5e57a5d018.tar.xz nixlib-0c82d6899193789954b2e82ce30abe5e57a5d018.tar.zst nixlib-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.nix | 29 |
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 000000000000..ca91829adef2 --- /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 ]; + }; +} |