about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/dict-cc-py/default.nix
blob: 9d4c40084f7f0e5012e0249b0a5474fe2accdaa8 (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
{ lib
, python3
, fetchFromGitHub
}:

python3.pkgs.buildPythonPackage rec {
  pname = "dict.cc.py";
  version = "3.1.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "rbaron";
    repo = "dict.cc.py";
    rev = "a8b469767590fdd15d3aeb0b00e2ae62aa15a918";
    hash = "sha256-wc0WY1pETBdOT3QUaVGsX8YdcnhxLIHrZ2vt2t5LYKU=";
  };

  propagatedBuildInputs = with python3.pkgs; [
    beautifulsoup4
    colorama
    requests
  ];

  pythonImportsCheck = [ "dictcc" ];

  meta = with lib; {
    description = "Unofficial command line client for dict.cc";
    mainProgram = "dict.cc.py";
    homepage = "https://github.com/rbaron/dict.cc.py";
    license = with licenses; [ cc0 ];
    maintainers = with maintainers; [ ];
  };
}