46 lines
788 B
Nix
46 lines
788 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pyperclip,
|
|
urwid,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "upass";
|
|
version = "0.3.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Kwpolska";
|
|
repo = "upass";
|
|
rev = "v${version}";
|
|
hash = "sha256-IlNqPmDaRZ3yRV8O6YKjQkZ3fKNcFgzJHtIX0ADrOyU=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
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 = [ ];
|
|
};
|
|
}
|