diff --git a/pkgs/default.nix b/pkgs/default.nix index e4c8526d..d7369098 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -55,6 +55,7 @@ let callPackage ./pop-launcher-plugin-duckduckgo-bangs.nix { }; rnote = callPackage ./rnote.nix { }; tic-80 = callPackage ./tic-80 { }; + segno = libsForQt5.callPackage ./segno.nix { }; sioyek = libsForQt5.callPackage ./sioyek.nix { }; vpaint = libsForQt5.callPackage ./vpaint.nix { }; }; diff --git a/pkgs/segno.nix b/pkgs/segno.nix new file mode 100644 index 00000000..5145a36d --- /dev/null +++ b/pkgs/segno.nix @@ -0,0 +1,23 @@ +{ lib, python3, fetchFromGitHub }: + +with python3.pkgs; +buildPythonPackage rec { + pname = "segno"; + version = "1.4.1"; + + src = fetchFromGitHub { + owner = "heuer"; + repo = pname; + rev = version; + sha256 = "sha256-o83HmB4vGDP0P2Ep1eyO5QX8ihnW497ufRxiEEaG+hE="; + }; + + # TODO: Package the Python package for testing. + doCheck = false; + + meta = with lib; { + description = "Encode QR codes without dependencies (except Python)."; + homepage = "https://github.com/heuer/segno"; + license = licenses.bsd3; + }; +}