2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, pypng
|
|
|
|
, pyzbar
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "segno";
|
|
|
|
version = "1.5.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "heuer";
|
|
|
|
repo = "segno";
|
|
|
|
rev = version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-+OEXG5OvrZ5Ft7IO/7zodf+SgiRF+frwjltrBENNnHo=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-07-14 12:49:19 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|