bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
27 lines
806 B
Nix
27 lines
806 B
Nix
{ lib, buildPythonApplication, fetchFromGitHub, pyxdg, pytest, pytest-mock }:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "pass-git-helper";
|
|
version = "2.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "languitar";
|
|
repo = "pass-git-helper";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-IpMaCG6kPNrWtcl10Lh7A3PyIF4Mk0t2wLYON+zMLsE=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ pyxdg ];
|
|
nativeCheckInputs = [ pytest pytest-mock ];
|
|
preCheck = ''
|
|
export HOME=$(mktemp -d)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/languitar/pass-git-helper";
|
|
description = "Git credential helper interfacing with pass, the standard unix password manager";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ hmenke vanzef ];
|
|
mainProgram = "pass-git-helper";
|
|
};
|
|
}
|