Merge pull request #65618 from peterhoeg/p/spwgen

pwgen-secure: init at 0.9.1
This commit is contained in:
Peter Hoeg 2019-07-31 15:18:14 +08:00 committed by GitHub
commit f46b8a9ef2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,36 @@
{ lib, python3Packages, fetchFromGitHub }:
with python3Packages;
buildPythonApplication rec {
pname = "pwgen-secure";
version = "0.9.1";
# it needs `secrets` which was introduced in 3.6
disabled = pythonOlder "3.6";
# GH is newer than Pypi and contains both library *and* the actual program
# whereas Pypi only has the library
src = fetchFromGitHub {
owner = "mjmunger";
repo = "pwgen_secure";
rev = "v${version}";
sha256 = "15md5606hzy1xfhj2lxmc0nvynyrcs4vxa5jdi34kfm31rdklj28";
};
propagatedBuildInputs = [ docopt ];
postInstall = ''
install -Dm755 spwgen.py $out/bin/spwgen
'';
# there are no checks
doCheck = false;
meta = with lib; {
description = "Secure password generation library to replace pwgen";
homepage = "https://github.com/mjmunger/pwgen_secure/";
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
};
}

View File

@ -5523,6 +5523,8 @@ in
pwgen = callPackage ../tools/security/pwgen { };
pwgen-secure = callPackage ../tools/security/pwgen-secure { };
pwnat = callPackage ../tools/networking/pwnat { };
pwndbg = python3Packages.callPackage ../development/tools/misc/pwndbg { };