about summary refs log tree commit diff
path: root/pkgs/development/python-modules/qrcode-terminal/default.nix
blob: 2ec58510c70706f5dad010fb02a6401f2237dd8e (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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  qrcode,
  pillow,
}:
buildPythonPackage rec {
  pname = "qrcode-terminal";
  version = "0.8";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-Hitp5mK5NG6Y3ZWYMDPp1Dz/BkPYr9oSYF9RVCjmZsA=";
  };

  build-system = [ setuptools ];

  dependencies = [
    qrcode
    pillow
  ];

  # have no test
  doCheck = false;

  pythonImportsCheck = [ "qrcode_terminal" ];

  meta = {
    description = "Display QRCode in Terminal";
    homepage = "https://github.com/alishtory/qrcode-terminal";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ moraxyc ];
    mainProgram = "qrcode-terminal-py";
  };
}