about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/shutilwhich/default.nix
blob: d88141c8b358445f88741fddaa8abc2f22ac5b29 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest
}:

buildPythonPackage rec {
  pname = "shutilwhich";
  version = "1.1.0";

  src = fetchFromGitHub {
    owner = "mbr";
    repo = pname;
    rev = version;
    sha256 = "05fwcjn86w8wprck04iv1zccfi39skdf0lhwpb4b9gpvklyc9mj0";
  };

  checkInputs = [ 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 ];
  };
}