1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 02:24:27 +00:00
nixpkgs/pkgs/development/python-modules/clf/default.nix

30 lines
738 B
Nix
Raw Normal View History

2018-03-31 17:26:30 +01:00
{ stdenv, buildPythonPackage, fetchPypi
, docopt, requests, pygments }:
buildPythonPackage rec {
pname = "clf";
2018-04-04 19:03:45 +01:00
version = "0.5.7";
2018-03-31 17:26:30 +01:00
src = fetchPypi {
inherit pname version;
2018-04-04 19:03:45 +01:00
sha256 = "abc919a1e99667f32fdde15dfb4bc527dbe22cf86a17acb78a449d7f2dfe937e";
2018-03-31 17:26:30 +01: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;
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 ];
};
}