nixpkgs/pkgs/tools/security/pius/default.nix

39 lines
1.1 KiB
Nix
Raw Normal View History

2017-11-24 11:29:59 +00:00
{ fetchFromGitHub, stdenv, pythonPackages, gnupg }:
2017-11-24 11:29:59 +00:00
let version = "2.2.4"; in
pythonPackages.buildPythonApplication {
name = "pius-${version}";
namePrefix = "";
src = fetchFromGitHub {
owner = "jaymzh";
repo = "pius";
rev = "v${version}";
2017-11-24 11:29:59 +00:00
sha256 = "1yk6ngpk55yjdnzhm5sj675xbzwp7rir816a3aris647gsph1vlx";
};
patchPhase = ''
2017-11-24 11:29:59 +00:00
for file in libpius/constants.py pius-keyring-mgr; do
sed -i "$file" -E -e's|/usr/bin/gpg2?|${gnupg}/bin/gpg|g'
done
'';
meta = {
homepage = https://www.phildev.net/pius/;
description = "PGP Individual UID Signer (PIUS), quickly and easily sign UIDs on a set of PGP keys";
longDescription =
'' This software will allow you to quickly and easily sign each UID on
a set of PGP keys. It is designed to take the pain out of the
sign-all-the-keys part of PGP Keysigning Party while adding security
to the process.
'';
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.gnu;
2017-11-24 11:30:17 +00:00
maintainers = with stdenv.lib.maintainers; [ fuuzetsu kierdavis ];
};
}