1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, setuptools
5, pytest-mock
6, pytestCheckHook
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "shellingham";
12 version = "1.5.0.post1";
13 format = "pyproject";
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "sarugaku";
18 repo = pname;
19 rev = "refs/tags/${version}";
20 hash = "sha256-nAXI1GxSpmmpJuatPYUeAClA88B9c/buPEWhq7RKvs8=";
21 };
22
23 nativeBuildInputs = [
24 setuptools
25 ];
26
27 nativeCheckInputs = [
28 pytest-mock
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [ "shellingham" ];
33
34 meta = with lib; {
35 description = "Tool to detect the surrounding shell";
36 homepage = "https://github.com/sarugaku/shellingham";
37 license = licenses.isc;
38 maintainers = with maintainers; [ mbode ];
39 };
40}