1{ fetchFromGitHub, lib, python3Packages, gnupg, perl }:
2
3let version = "3.0.0"; in
4python3Packages.buildPythonApplication {
5 pname = "pius";
6 namePrefix = "";
7 inherit version;
8
9 src = fetchFromGitHub {
10 owner = "jaymzh";
11 repo = "pius";
12 rev = "v${version}";
13 sha256 = "0l87dx7n6iwy8alxnhvval8h1kl4da6a59hsilbi65c6bpj4dh3y";
14 };
15
16 patchPhase = ''
17 for file in libpius/constants.py pius-keyring-mgr; do
18 sed -i "$file" -E -e's|/usr/bin/gpg2?|${gnupg}/bin/gpg|g'
19 done
20 '';
21
22 buildInputs = [ perl ];
23
24 meta = {
25 homepage = "https://www.phildev.net/pius/";
26
27 description = "PGP Individual UID Signer (PIUS), quickly and easily sign UIDs on a set of PGP keys";
28
29 longDescription =
30 '' This software will allow you to quickly and easily sign each UID on
31 a set of PGP keys. It is designed to take the pain out of the
32 sign-all-the-keys part of PGP Keysigning Party while adding security
33 to the process.
34 '';
35
36 license = lib.licenses.gpl2Only;
37
38 platforms = lib.platforms.gnu ++ lib.platforms.linux;
39 maintainers = with lib.maintainers; [ kierdavis ];
40 };
41}