mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
37 lines
948 B
Nix
37 lines
948 B
Nix
{ lib, buildPythonApplication, fetchFromGitHub, pyxdg, pytestCheckHook, pytest-cov-stub, pytest-mock, setuptools }:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "pass-git-helper";
|
|
version = "3.0.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "languitar";
|
|
repo = "pass-git-helper";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-DLH3l4wYfBlrc49swLgyHeZXebJ5JSzU7cHjD7Hmw0g=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ pyxdg ];
|
|
|
|
env.HOME = "$TMPDIR";
|
|
|
|
pythonImportsCheck = [ "passgithelper" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-cov-stub
|
|
pytest-mock
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/languitar/pass-git-helper";
|
|
description = "Git credential helper interfacing with pass, the standard unix password manager";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ hmenke vanzef ];
|
|
mainProgram = "pass-git-helper";
|
|
};
|
|
}
|