Skip to content

Commit

Permalink
pass-git-helper: modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukium committed Oct 6, 2024
1 parent dcc4fd6 commit 7758143
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions pkgs/applications/version-management/pass-git-helper/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{ 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 = "3.0.0";
pyproject = true;

src = fetchFromGitHub {
owner = "languitar";
Expand All @@ -11,11 +12,19 @@ buildPythonApplication rec {
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 7758143

Please sign in to comment.