Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildPythonApplication, fetchFromGitHub, pyxdg, pytest, pytest-mock }: 2 3buildPythonApplication rec { 4 pname = "pass-git-helper"; 5 version = "1.2.0"; 6 7 src = fetchFromGitHub { 8 owner = "languitar"; 9 repo = "pass-git-helper"; 10 rev = "v${version}"; 11 sha256 = "sha256-An9JKnS/Uor7iZ+lbBGR3eOkxOgV+SjnCWN/QmqFI/I="; 12 }; 13 14 propagatedBuildInputs = [ pyxdg ]; 15 nativeCheckInputs = [ pytest pytest-mock ]; 16 preCheck = '' 17 export HOME=$(mktemp -d) 18 ''; 19 20 meta = with lib; { 21 homepage = "https://github.com/languitar/pass-git-helper"; 22 description = "A git credential helper interfacing with pass, the standard unix password manager"; 23 license = licenses.gpl3Plus; 24 maintainers = with maintainers; [ hmenke vanzef ]; 25 }; 26}