1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 filelock, 7 pytest, 8 typing-extensions, 9 polars, 10 pytest-xdist, 11 pytestCheckHook, 12}: 13 14buildPythonPackage rec { 15 pname = "pytest-shared-session-scope"; 16 version = "0.5.1"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "StefanBRas"; 21 repo = "pytest-shared-session-scope"; 22 tag = "v${version}"; 23 hash = "sha256-HB8RuF/+BmW3KBZ7C8EpUMuBntvcjSsrkLUiBvPwcf8="; 24 }; 25 26 build-system = [ hatchling ]; 27 28 dependencies = [ 29 filelock 30 pytest 31 typing-extensions 32 ]; 33 34 nativeCheckInputs = [ 35 polars 36 pytest-xdist 37 pytestCheckHook 38 ]; 39 40 pythonImportsCheck = [ "pytest_shared_session_scope" ]; 41 42 meta = { 43 changelog = "https://github.com/StefanBRas/pytest-shared-session-scope/blob/${src.tag}/CHANGELOG.md"; 44 description = "Pytest session-scoped fixture that works with xdist"; 45 homepage = "https://pypi.org/project/pytest-shared-session-scope/"; 46 license = lib.licenses.mit; 47 maintainers = with lib.maintainers; [ ]; 48 }; 49}