forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / applications / version-management / pass-git-helper / default.nix
blob590d25428a80d8a783572a578cbff41e781e1702
1 { lib, buildPythonApplication, fetchFromGitHub, pyxdg, pytestCheckHook, pytest-cov-stub, pytest-mock, setuptools }:
3 buildPythonApplication rec {
4   pname   = "pass-git-helper";
5   version = "3.0.0";
6   pyproject = true;
8   src = fetchFromGitHub {
9     owner  = "languitar";
10     repo   = "pass-git-helper";
11     rev = "refs/tags/v${version}";
12     sha256 = "sha256-DLH3l4wYfBlrc49swLgyHeZXebJ5JSzU7cHjD7Hmw0g=";
13   };
15   build-system = [ setuptools ];
17   dependencies = [ pyxdg ];
19   env.HOME = "$TMPDIR";
21   pythonImportsCheck = [ "passgithelper" ];
23   nativeCheckInputs = [
24     pytestCheckHook
25     pytest-cov-stub
26     pytest-mock
27   ];
29   meta = with lib; {
30     homepage = "https://github.com/languitar/pass-git-helper";
31     description = "Git credential helper interfacing with pass, the standard unix password manager";
32     license = licenses.gpl3Plus;
33     maintainers = with maintainers; [ hmenke vanzef ];
34     mainProgram = "pass-git-helper";
35   };