depot/third_party/nixpkgs/pkgs/development/python-modules/xkcdpass/default.nix
Default email ec92d4d331 Project import generated by Copybara.
GitOrigin-RevId: 540dccb2aeaffa9dc69bfdc41c55abd7ccc6baa3
2021-05-28 11:39:13 +02:00

34 lines
751 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, installShellFiles
}:
buildPythonPackage rec {
pname = "xkcdpass";
version = "1.19.2";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-F7977Tb8iu/pRy6YhginJgK0N0G3CjPpHjomLTFf1F8=";
};
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 ];
};
}