2020-11-30 08:33:03 +00:00
|
|
|
{ stdenv, buildPythonApplication, fetchFromGitHub, pyxdg, pytest }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "pass-git-helper";
|
2020-11-30 08:33:03 +00:00
|
|
|
version = "1.1.0";
|
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}";
|
|
|
|
sha256 = "18nvwlp0w4aqj268wly60rnjzqw2d8jl0hbs6bkwp3hpzzz5g6yd";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyxdg ];
|
2020-11-30 08:33:03 +00:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with stdenv.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; [ vanzef ];
|
|
|
|
};
|
|
|
|
}
|