1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4
5# build-system
6, setuptools
7
8# tests
9, pytestCheckHook
10, pypng
11, pyzbar
12}:
13
14buildPythonPackage rec {
15 pname = "segno";
16 version = "1.5.3";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "heuer";
21 repo = "segno";
22 rev = version;
23 hash = "sha256-j7DUCeMoYziu19WfJu/9YiIMa2ysOPYfqW8AMcE5LaU=";
24 };
25
26 nativeBuildInputs = [
27 setuptools
28 ];
29
30 nativeCheckInputs = [
31 pytestCheckHook
32 pypng
33 pyzbar
34 ];
35
36 pythonImportsCheck = [
37 "segno"
38 ];
39
40 meta = with lib; {
41 changelog = "https://github.com/heuer/segno/releases/tag/${version}";
42 description = "QR Code and Micro QR Code encoder";
43 homepage = "https://github.com/heuer/segno/";
44 license = licenses.bsd3;
45 maintainers = with maintainers; [ phaer ];
46 };
47}