2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonApplication, fetchFromGitHub, pyxdg, pytest, pytest-mock }:
|
2018-09-26 13:46:05 +01:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "pass-git-helper";
|
2022-03-07 14:17:32 +00:00
|
|
|
version = "1.2.0";
|
2018-09-26 13:46:05 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "languitar";
|
|
|
|
repo = "pass-git-helper";
|
2020-11-25 13:12:17 +00:00
|
|
|
rev = "v${version}";
|
2022-03-07 14:17:32 +00:00
|
|
|
sha256 = "sha256-An9JKnS/Uor7iZ+lbBGR3eOkxOgV+SjnCWN/QmqFI/I=";
|
2018-09-26 13:46:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyxdg ];
|
2021-01-05 20:30:26 +00:00
|
|
|
checkInputs = [ pytest pytest-mock ];
|
2020-11-25 13:12:17 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
2018-09-26 13:46:05 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-09-26 13:46:05 +01:00
|
|
|
homepage = "https://github.com/languitar/pass-git-helper";
|
|
|
|
description = "A git credential helper interfacing with pass, the standard unix password manager";
|
|
|
|
license = licenses.gpl3Plus;
|
2021-09-24 20:12:08 +01:00
|
|
|
maintainers = with maintainers; [ hmenke vanzef ];
|
2018-09-26 13:46:05 +01:00
|
|
|
};
|
|
|
|
}
|