nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 48 lines 966 B view raw
1{ 2 lib, 3 buildPythonApplication, 4 fetchFromGitHub, 5 pyxdg, 6 pytestCheckHook, 7 pytest-cov-stub, 8 pytest-mock, 9 setuptools, 10}: 11 12buildPythonApplication rec { 13 pname = "pass-git-helper"; 14 version = "3.3.0"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "languitar"; 19 repo = "pass-git-helper"; 20 tag = "v${version}"; 21 sha256 = "sha256-Y+Y/WcVY5XrxhLoixWwsi9TMkWsJ+jXbs1rZuzo3MFo="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ pyxdg ]; 27 28 env.HOME = "$TMPDIR"; 29 30 pythonImportsCheck = [ "passgithelper" ]; 31 32 nativeCheckInputs = [ 33 pytestCheckHook 34 pytest-cov-stub 35 pytest-mock 36 ]; 37 38 meta = with lib; { 39 homepage = "https://github.com/languitar/pass-git-helper"; 40 description = "Git credential helper interfacing with pass, the standard unix password manager"; 41 license = licenses.gpl3Plus; 42 maintainers = with maintainers; [ 43 hmenke 44 vanzef 45 ]; 46 mainProgram = "pass-git-helper"; 47 }; 48}