blob: d87b902458fee7c8f7548de1e8e8266498f59311 (
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
50
51
52
53
54
55
56
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
# build-system
flit-core,
# dependencies
importlib-metadata,
# tests
pytestCheckHook,
pypng,
pyzbar,
}:
buildPythonPackage rec {
pname = "segno";
version = "1.6.1";
pyproject = true;
src = fetchFromGitHub {
owner = "heuer";
repo = "segno";
rev = "refs/tags/${version}";
hash = "sha256-5CDrQhbgUydz1ORp4ktZwhcgbJxQq1snKIAA0v4mZ00=";
};
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ importlib-metadata ];
nativeCheckInputs = [
pytestCheckHook
pypng
pyzbar
];
disabledTests = [
# https://github.com/heuer/segno/issues/132
"test_plugin"
];
pythonImportsCheck = [ "segno" ];
meta = with lib; {
changelog = "https://github.com/heuer/segno/releases/tag/${version}";
description = "QR Code and Micro QR Code encoder";
mainProgram = "segno";
homepage = "https://github.com/heuer/segno/";
license = licenses.bsd3;
maintainers = with maintainers; [ phaer ];
};
}
|