2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2018-03-31 18:26:30 +02:00
|
|
|
, docopt, requests, pygments }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "clf";
|
2018-04-04 20:03:45 +02:00
|
|
|
version = "0.5.7";
|
2018-03-31 18:26:30 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-04-04 20:03:45 +02:00
|
|
|
sha256 = "abc919a1e99667f32fdde15dfb4bc527dbe22cf86a17acb78a449d7f2dfe937e";
|
2018-03-31 18:26:30 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/ncrocfer/clf";
|
2018-03-31 18:26:30 +02:00
|
|
|
description = "Command line tool to search snippets on Commandlinefu.com";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ koral ];
|
|
|
|
};
|
|
|
|
}
|