a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
30 lines
566 B
Nix
30 lines
566 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "shutilwhich";
|
|
version = "1.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mbr";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "05fwcjn86w8wprck04iv1zccfi39skdf0lhwpb4b9gpvklyc9mj0";
|
|
};
|
|
|
|
nativeCheckInputs = [ pytest ];
|
|
|
|
checkPhase = ''
|
|
pytest -rs
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Backport of shutil.which";
|
|
license = licenses.psfl;
|
|
homepage = "https://github.com/mbr/shutilwhich";
|
|
maintainers = with maintainers; [ multun ];
|
|
};
|
|
}
|