2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonApplication, fetchFromGitHub, pyxdg, pytest, pytest-mock }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "pass-git-helper";
|
2021-09-28 08:13:01 +00:00
|
|
|
version = "1.1.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "languitar";
|
|
|
|
repo = "pass-git-helper";
|
2020-11-30 08:33:03 +00:00
|
|
|
rev = "v${version}";
|
2021-09-28 08:13:01 +00:00
|
|
|
sha256 = "sha256-HEdOR6jS16c4UIatlgB6HeBtyyxePSab+6e2hu85dsI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyxdg ];
|
2021-01-17 00:15:33 +00:00
|
|
|
checkInputs = [ pytest pytest-mock ];
|
2020-11-30 08:33:03 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00: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-28 08:13:01 +00:00
|
|
|
maintainers = with maintainers; [ hmenke vanzef ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|