nixpkgs/pkgs/applications/version-management/git-and-tools/pass-git-helper/default.nix
2021-09-24 21:12:08 +02:00

26 lines
758 B
Nix

{ lib, buildPythonApplication, fetchFromGitHub, pyxdg, pytest, pytest-mock }:
buildPythonApplication rec {
pname = "pass-git-helper";
version = "1.1.2";
src = fetchFromGitHub {
owner = "languitar";
repo = "pass-git-helper";
rev = "v${version}";
sha256 = "sha256-HEdOR6jS16c4UIatlgB6HeBtyyxePSab+6e2hu85dsI=";
};
propagatedBuildInputs = [ pyxdg ];
checkInputs = [ pytest pytest-mock ];
preCheck = ''
export HOME=$(mktemp -d)
'';
meta = with lib; {
homepage = "https://github.com/languitar/pass-git-helper";
description = "A git credential helper interfacing with pass, the standard unix password manager";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ hmenke vanzef ];
};
}