Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pypng 6, pyzbar 7}: 8 9buildPythonPackage rec { 10 pname = "segno"; 11 version = "1.5.2"; 12 13 src = fetchFromGitHub { 14 owner = "heuer"; 15 repo = "segno"; 16 rev = version; 17 hash = "sha256-+OEXG5OvrZ5Ft7IO/7zodf+SgiRF+frwjltrBENNnHo="; 18 }; 19 20 nativeCheckInputs = [ 21 pytestCheckHook 22 pypng 23 pyzbar 24 ]; 25 26 pythonImportsCheck = [ "segno" ]; 27 28 meta = with lib; { 29 description = "QR Code and Micro QR Code encoder"; 30 homepage = "https://github.com/heuer/segno/"; 31 license = licenses.bsd3; 32 maintainers = with maintainers; [ phaer ]; 33 }; 34}