19 buildPythonPackage rec {
24 src = fetchFromGitHub {
27 rev = "refs/tags/${version}";
28 hash = "sha256-5CDrQhbgUydz1ORp4ktZwhcgbJxQq1snKIAA0v4mZ00=";
31 nativeBuildInputs = [ flit-core ];
33 propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ importlib-metadata ];
42 # https://github.com/heuer/segno/issues/132
46 pythonImportsCheck = [ "segno" ];
49 changelog = "https://github.com/heuer/segno/releases/tag/${version}";
50 description = "QR Code and Micro QR Code encoder";
51 mainProgram = "segno";
52 homepage = "https://github.com/heuer/segno/";
53 license = licenses.bsd3;
54 maintainers = with maintainers; [ phaer ];