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