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.1"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "sarugaku"; 19 repo = pname; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-7hMlKw9oSGp57FQmbxdAgUsm5cFRr1oTW1ymJyYsgOg="; 22 }; 23 24 nativeBuildInputs = [ 25 setuptools 26 ]; 27 28 nativeCheckInputs = [ 29 pytest-mock 30 pytestCheckHook 31 ]; 32 33 pythonImportsCheck = [ 34 "shellingham" 35 ]; 36 37 meta = with lib; { 38 description = "Tool to detect the surrounding shell"; 39 homepage = "https://github.com/sarugaku/shellingham"; 40 changelog = "https://github.com/sarugaku/shellingham/blob/${version}/CHANGELOG.rst"; 41 license = licenses.isc; 42 maintainers = with maintainers; [ mbode ]; 43 }; 44}