1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatch-docstring-description, 6 hatch-vcs, 7 hatchling, 8 coverage, 9 ipykernel, 10 jupyter-client, 11 pytestCheckHook, 12 pytest-asyncio, 13 pytest-subprocess, 14 testing-common-database, 15 writableTmpDirAsHomeHook, 16}: 17 18buildPythonPackage rec { 19 pname = "session-info2"; 20 version = "0.2.2"; 21 pyproject = true; 22 23 src = fetchFromGitHub { 24 owner = "scverse"; 25 repo = "session-info2"; 26 tag = "v${version}"; 27 hash = "sha256-C/+0XxgaEznyWr7LYJ89YHozpKvf5QjFmcr4B/44LNU="; 28 }; 29 30 build-system = [ 31 hatch-docstring-description 32 hatch-vcs 33 hatchling 34 ]; 35 36 nativeCheckInputs = [ 37 coverage 38 ipykernel 39 jupyter-client 40 pytestCheckHook 41 pytest-asyncio 42 pytest-subprocess 43 testing-common-database 44 writableTmpDirAsHomeHook 45 ]; 46 47 pythonImportsCheck = [ 48 "session_info2" 49 ]; 50 51 meta = { 52 description = "Report Python session information"; 53 homepage = "https://session-info2.readthedocs.io"; 54 changelog = "https://github.com/scverse/session-info2/releases/tag/${src.tag}"; 55 license = lib.licenses.mpl20; 56 maintainers = with lib.maintainers; [ bcdarwin ]; 57 }; 58}