python3Packages.shutilwhich: modernize

This commit is contained in:
Harinn
2026-07-02 20:49:41 +07:00
parent ef9e44eeff
commit 4def1cade8
@@ -3,28 +3,28 @@
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytest,
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "shutilwhich";
version = "1.1.0";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "mbr";
repo = "shutilwhich";
rev = version;
sha256 = "05fwcjn86w8wprck04iv1zccfi39skdf0lhwpb4b9gpvklyc9mj0";
tag = finalAttrs.version;
hash = "sha256-QNbEPJ37vrTIuhxS4NrUaUTH2A87EjBZvhxxg6xk3BU=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytest ];
nativeCheckInputs = [ pytestCheckHook ];
checkPhase = ''
pytest -rs
'';
pythonImportsCheck = [ "shutilwhich" ];
meta = {
description = "Backport of shutil.which";
@@ -32,4 +32,4 @@ buildPythonPackage rec {
homepage = "https://github.com/mbr/shutilwhich";
maintainers = with lib.maintainers; [ multun ];
};
}
})