504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
31 lines
591 B
Nix
31 lines
591 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "shutilwhich";
|
|
version = "1.1.0";
|
|
format = "setuptools";
|
|
|
|
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 ];
|
|
};
|
|
}
|