about summary refs log tree commit diff
path: root/pkgs/development/python-modules/clf/default.nix
blob: acf60cba7e1e4e30b65aa4d68be45b0ef351b899 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
  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 = with lib; {
    homepage = "https://github.com/ncrocfer/clf";
    description = "Command line tool to search snippets on Commandlinefu.com";
    mainProgram = "clf";
    license = licenses.mit;
    maintainers = with maintainers; [ koral ];
  };
}