Commit 2f1bc256 authored by Doron Behar's avatar Doron Behar
Browse files

khard: use versionCheckHook instead of passthru.tests

parent 450862a5
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -2,8 +2,7 @@
  lib,
  python3,
  fetchPypi,
  khard,
  testers,
  versionCheckHook,
}:

python3.pkgs.buildPythonApplication (finalAttrs: {
@@ -45,7 +44,9 @@ python3.pkgs.buildPythonApplication (finalAttrs: {

  pythonImportsCheck = [ "khard" ];

  passthru.tests.version = testers.testVersion { package = khard; };
  nativeCheckInputs = [
    versionCheckHook
  ];

  meta = {
    homepage = "https://github.com/lucc/khard";