1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytest, 6}: 7 8buildPythonPackage rec { 9 pname = "shutilwhich"; 10 version = "1.1.0"; 11 format = "setuptools"; 12 13 src = fetchFromGitHub { 14 owner = "mbr"; 15 repo = "shutilwhich"; 16 rev = version; 17 sha256 = "05fwcjn86w8wprck04iv1zccfi39skdf0lhwpb4b9gpvklyc9mj0"; 18 }; 19 20 nativeCheckInputs = [ pytest ]; 21 22 checkPhase = '' 23 pytest -rs 24 ''; 25 26 meta = with lib; { 27 description = "Backport of shutil.which"; 28 license = licenses.psfl; 29 homepage = "https://github.com/mbr/shutilwhich"; 30 maintainers = with maintainers; [ multun ]; 31 }; 32}