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