nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 flit-core,
8
9 # tests
10 pytestCheckHook,
11 pypng,
12 pyzbar,
13}:
14
15buildPythonPackage rec {
16 pname = "segno";
17 version = "1.6.6";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "heuer";
22 repo = "segno";
23 tag = version;
24 hash = "sha256-A6lESmVogypit0SDeG4g9axn3+welSqTt1A17BNLmvU=";
25 };
26
27 nativeBuildInputs = [ flit-core ];
28
29 nativeCheckInputs = [
30 pytestCheckHook
31 pypng
32 pyzbar
33 ];
34
35 disabledTests = [
36 # https://github.com/heuer/segno/issues/132
37 "test_plugin"
38 ];
39
40 pythonImportsCheck = [ "segno" ];
41
42 meta = {
43 changelog = "https://github.com/heuer/segno/releases/tag/${src.tag}";
44 description = "QR Code and Micro QR Code encoder";
45 mainProgram = "segno";
46 homepage = "https://github.com/heuer/segno/";
47 license = lib.licenses.bsd3;
48 maintainers = with lib.maintainers; [ phaer ];
49 };
50}