pythonPackages.clf: Move to own file

This commit is contained in:
Elis Hirwing 2018-03-31 18:26:30 +02:00 committed by Frederik Rietdijk
parent 3c991104a0
commit 0c82d68991
2 changed files with 30 additions and 26 deletions

View file

@ -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 ];
};
}

View file

@ -1536,32 +1536,7 @@ in {
cld2-cffi = callPackage ../development/python-modules/cld2-cffi {};
clf = buildPythonPackage rec {
name = "clf-${version}";
version = "0.5.2";
src = pkgs.fetchurl {
url = "mirror://pypi/c/clf/${name}.tar.gz";
sha256 = "04lqd2i4fjs606b0q075yi9xksk567m0sfph6v6j80za0hvzqyy5";
};
patchPhase = ''
sed -i 's/==/>=/' requirements.txt
'';
propagatedBuildInputs = with self; [ docopt requests pygments ];
# Error when running tests:
# No local packages or download links found for requests
doCheck = false;
meta = {
homepage = https://github.com/ncrocfer/clf;
description = "Command line tool to search snippets on Commandlinefu.com";
license = licenses.mit;
maintainers = with maintainers; [ koral ];
};
};
clf = callPackage ../development/python-modules/clf {};
click = buildPythonPackage rec {
name = "click-6.7";