about summary refs log tree commit diff
path: root/pkgs/development/python-modules/reportlab-qrcode/default.nix
blob: 97d1e9d137320123e313603e218be2b949a427ca (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
42
43
44
45
46
47
48
49
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, wheel
, qrcode
, reportlab
, pillow
, pytest
, pyzbar
}:

buildPythonPackage rec {
  pname = "reportlab-qrcode";
  version = "0.1.6";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-m/oeuA797MEBOJBIG157VIa7TbEbRRVK/O8Arz/oO/o=";
  };

  nativeBuildInputs = [
    setuptools
    wheel
  ];

  propagatedBuildInputs = [
    qrcode
    reportlab
  ];

  passthru.optional-dependencies = {
    testing = [
      pillow
      pytest
      pyzbar
    ];
  };

  pythonImportsCheck = [ "reportlab_qrcode" ];

  meta = with lib; {
    description = "Allows to create QR codes for use with the ReportLab PDF library";
    homepage = "https://pypi.org/project/reportlab-qrcode/";
    license = licenses.mit;
    maintainers = with maintainers; [ xanderio ];
  };
}