Skip to content

Commit

Permalink
pass-git-helper: 2.0.0 -> 3.0.0 (#345072)
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukium authored Oct 6, 2024
2 parents 880544b + 7758143 commit 2cc5fb7
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions pkgs/applications/version-management/pass-git-helper/default.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,30 @@
{ lib, buildPythonApplication, fetchFromGitHub, pyxdg, pytest, pytest-mock }:
{ lib, buildPythonApplication, fetchFromGitHub, pyxdg, pytestCheckHook, pytest-cov-stub, pytest-mock, setuptools }:

buildPythonApplication rec {
pname = "pass-git-helper";
version = "2.0.0";
version = "3.0.0";
pyproject = true;

src = fetchFromGitHub {
owner = "languitar";
repo = "pass-git-helper";
rev = "refs/tags/v${version}";
sha256 = "sha256-IpMaCG6kPNrWtcl10Lh7A3PyIF4Mk0t2wLYON+zMLsE=";
sha256 = "sha256-DLH3l4wYfBlrc49swLgyHeZXebJ5JSzU7cHjD7Hmw0g=";
};

propagatedBuildInputs = [ pyxdg ];
nativeCheckInputs = [ pytest pytest-mock ];
preCheck = ''
export HOME=$(mktemp -d)
'';
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";
Expand Down

0 comments on commit 2cc5fb7

Please sign in to comment.