1{ 2 lib, 3 buildPythonPackage, 4 fetchFromSourcehut, 5 hatchling, 6 pook, 7 pytest, 8 pytestCheckHook, 9}: 10 11buildPythonPackage { 12 pname = "pytest-pook"; 13 version = "1.0.0"; 14 pyproject = true; 15 16 src = fetchFromSourcehut { 17 owner = "~sara"; 18 repo = "pytest-pook"; 19 rev = "a7c2d0ca4287af671ebd065b0f6415bb4110f338"; 20 hash = "sha256-q2HaoIB2CW5LaRggLlmar2AEa4X8cI/aY2Sz/Y7LWMs="; 21 }; 22 23 build-system = [ 24 hatchling 25 ]; 26 27 buildInputs = [ 28 pytest 29 ]; 30 31 dependencies = [ 32 (pook.overridePythonAttrs { doCheck = false; }) 33 ]; 34 35 # fails in various ways 36 doCheck = false; 37 38 nativeCheckInputs = [ 39 pytestCheckHook 40 ]; 41 42 pythonImportsCheck = [ 43 "pytest_pook" 44 ]; 45 46 meta = { 47 description = "Pytest plugin for pook"; 48 homepage = "https://git.sr.ht/~sara/pytest-pook"; 49 license = lib.licenses.lgpl3Only; 50 maintainers = pook.meta.maintainers; 51 }; 52}