nixpkgs/pkgs/applications/version-management/pass-git-helper/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

27 lines
764 B
Nix

{ 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 ];
nativeCheckInputs = [ 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 ];
};
}