diff options
Diffstat (limited to 'pkgs/applications/version-management/pass-git-helper/default.nix')
-rw-r--r-- | pkgs/applications/version-management/pass-git-helper/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/pass-git-helper/default.nix b/pkgs/applications/version-management/pass-git-helper/default.nix new file mode 100644 index 00000000000..63f7a459a70 --- /dev/null +++ b/pkgs/applications/version-management/pass-git-helper/default.nix @@ -0,0 +1,26 @@ +{ lib, buildPythonApplication, fetchFromGitHub, pyxdg, pytest, pytest-mock }: + +buildPythonApplication rec { + pname = "pass-git-helper"; + version = "1.2.0"; + + src = fetchFromGitHub { + owner = "languitar"; + repo = "pass-git-helper"; + rev = "v${version}"; + sha256 = "sha256-An9JKnS/Uor7iZ+lbBGR3eOkxOgV+SjnCWN/QmqFI/I="; + }; + + 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 ]; + }; +} |