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