nixpkgs/pkgs/development/python-modules/clf/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

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