1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytest, 6 pytestCheckHook, 7 pythonOlder, 8 setuptools, 9 setuptools-scm, 10}: 11 12buildPythonPackage rec { 13 pname = "pytest-logdog"; 14 version = "0.1.0"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "ods"; 21 repo = "pytest-logdog"; 22 rev = version; 23 hash = "sha256-Tmoq+KAGzn0MMj29rukDfAc4LSIwC8DoMTuBAppV32I="; 24 }; 25 26 nativeBuildInputs = [ setuptools-scm ]; 27 28 buildInputs = [ pytest ]; 29 30 propagatedBuildInputs = [ setuptools ]; 31 32 nativeCheckInputs = [ pytestCheckHook ]; 33 34 pythonImportsCheck = [ "pytest_logdog" ]; 35 36 meta = with lib; { 37 description = "Pytest plugin to test logging"; 38 homepage = "https://github.com/ods/pytest-logdog"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}