nixpkgs/pkgs/tools/security/pius/default.nix
2019-03-14 07:41:32 -07:00

42 lines
1.2 KiB
Nix

{ fetchFromGitHub, stdenv, pythonPackages, gnupg, perl }:
let version = "2.2.7"; in
pythonPackages.buildPythonApplication {
name = "pius-${version}";
namePrefix = "";
src = fetchFromGitHub {
owner = "jaymzh";
repo = "pius";
rev = "v${version}";
sha256 = "1kjj44lf9di4ylvmc949dxncllzd8afp0yknr3152dmxkw1vl127";
};
patchPhase = ''
for file in libpius/constants.py pius-keyring-mgr; do
sed -i "$file" -E -e's|/usr/bin/gpg2?|${gnupg}/bin/gpg|g'
done
'';
nativeBuildInputs = [ perl ];
propagatedBuildInputs = with pythonPackages; [ six ];
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 ++ stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ fuuzetsu kierdavis ];
};
}