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";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "1.4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "languitar";
|
|
|
|
repo = "pass-git-helper";
|
2024-02-07 01:22:34 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "sha256-wkayj7SvT3SOM+rol17+8LQJR/YXSC6I+iKbHRUbdZc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyxdg ];
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ 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 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "pass-git-helper";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|