summary refs log tree commit diff
path: root/pkgs/development/python-modules/segno/default.nix
blob: 12aa23e95dd1b28d4029ec595cd9b001a917a87e (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pypng
, pyzbar
}:

buildPythonPackage rec {
  pname = "segno";
  version = "1.5.2";

  src = fetchFromGitHub {
    owner = "heuer";
    repo = "segno";
    rev = version;
    hash = "sha256-+OEXG5OvrZ5Ft7IO/7zodf+SgiRF+frwjltrBENNnHo=";
  };

  nativeCheckInputs = [
    pytestCheckHook
    pypng
    pyzbar
  ];

  pythonImportsCheck = [ "segno" ];

  meta = with lib; {
    description = "QR Code and Micro QR Code encoder";
    homepage = "https://github.com/heuer/segno/";
    license = licenses.bsd3;
    maintainers = with maintainers; [ phaer ];
  };
}