1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 makefun, 6 setuptools-scm, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "decopatch"; 12 version = "1.4.10"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-lX9JyT9BUBgsI/j7UdE7syE+DxenngnIzKcFdZi1VyA="; 20 }; 21 22 nativeBuildInputs = [ setuptools-scm ]; 23 24 propagatedBuildInputs = [ makefun ]; 25 26 postPatch = '' 27 substituteInPlace setup.cfg \ 28 --replace "pytest-runner" "" 29 ''; 30 31 pythonImportsCheck = [ "decopatch" ]; 32 33 # Tests would introduce multiple circular dependencies 34 # Affected: makefun, pytest-cases 35 doCheck = false; 36 37 meta = with lib; { 38 description = "Python helper for decorators"; 39 homepage = "https://github.com/smarie/python-decopatch"; 40 license = licenses.bsd3; 41 maintainers = with maintainers; [ fab ]; 42 }; 43}