depot/third_party/nixpkgs/pkgs/development/python-modules/xkcdpass/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

34 lines
752 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, installShellFiles
}:
buildPythonPackage rec {
pname = "xkcdpass";
version = "1.17.6";
src = fetchPypi {
inherit pname version;
sha256 = "0ghsjs5bxl996pap910q9s21nywb26mfpjd92rbfywbnj8f2k2cy";
};
nativeBuildInputs = [ installShellFiles ];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "xkcdpass" ];
postInstall = ''
installManPage *.?
install -Dm444 -t $out/share/doc/${pname} README*
'';
meta = with lib; {
description = "Generate secure multiword passwords/passphrases, inspired by XKCD";
homepage = "https://pypi.python.org/pypi/xkcdpass/";
license = licenses.bsd3;
maintainers = with maintainers; [ peterhoeg ];
};
}