1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytest-mock 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "shellingham"; 11 version = "1.4.0"; 12 format = "pyproject"; 13 disabled = pythonOlder "3.4"; 14 15 src = fetchFromGitHub { 16 owner = "sarugaku"; 17 repo = pname; 18 rev = version; 19 sha256 = "0f686ym3ywjffis5jfqkhsshjgii64060hajysczflhffrjn9jcp"; 20 }; 21 22 checkInputs = [ 23 pytest-mock 24 pytestCheckHook 25 ]; 26 27 pythonImportsCheck = [ "shellingham" ]; 28 29 meta = with lib; { 30 description = "Tool to detect the surrounding shell"; 31 homepage = "https://github.com/sarugaku/shellingham"; 32 license = licenses.isc; 33 maintainers = with maintainers; [ mbode ]; 34 }; 35}