depot/third_party/nixpkgs/pkgs/development/python-modules/upass/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

43 lines
757 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pyperclip,
urwid,
}:
buildPythonPackage rec {
pname = "upass";
version = "0.2.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "Kwpolska";
repo = "upass";
rev = "v${version}";
sha256 = "0bgplq07dmlld3lp6jag1w055glqislfgwwq2k7cb2bzjgvysdnj";
};
propagatedBuildInputs = [
pyperclip
urwid
];
# Projec thas no tests
doCheck = false;
postInstall = ''
export HOME=$(mktemp -d);
mkdir $HOME/.config
'';
pythonImportsCheck = [ "upass" ];
meta = with lib; {
description = "Console UI for pass";
mainProgram = "upass";
homepage = "https://github.com/Kwpolska/upass";
license = licenses.bsd3;
maintainers = [ ];
};
}