mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
41 lines
804 B
Nix
41 lines
804 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
docopt,
|
|
requests,
|
|
pygments,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "clf";
|
|
version = "0.5.7";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "abc919a1e99667f32fdde15dfb4bc527dbe22cf86a17acb78a449d7f2dfe937e";
|
|
};
|
|
|
|
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 = {
|
|
homepage = "https://github.com/ncrocfer/clf";
|
|
description = "Command line tool to search snippets on Commandlinefu.com";
|
|
mainProgram = "clf";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ koral ];
|
|
};
|
|
}
|