1{ lib 2, buildPythonPackage 3, fetchPypi 4, setuptools-scm 5, pytestCheckHook 6, pythonOlder 7, testfixtures 8}: 9 10buildPythonPackage rec { 11 pname = "logfury"; 12 version = "1.0.1"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.5"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-EwpdrOq5rVNJJCUt33BIKqLJZmKzo4JafTCYHQO3aiY="; 20 }; 21 22 nativeBuildInputs = [ 23 setuptools-scm 24 ]; 25 26 nativeCheckInputs = [ 27 pytestCheckHook 28 testfixtures 29 ]; 30 31 postPatch = '' 32 substituteInPlace setup.py \ 33 --replace "'setuptools_scm<6.0'" "'setuptools_scm'" 34 ''; 35 36 pythonImportsCheck = [ 37 "logfury" 38 ]; 39 40 meta = with lib; { 41 description = "Python module that allows for responsible, low-boilerplate logging of method calls"; 42 homepage = "https://github.com/ppolewicz/logfury"; 43 license = licenses.bsd3; 44 maintainers = with maintainers; [ jwiegley ]; 45 }; 46}