1{ lib 2, fetchPypi 3, buildPythonPackage 4, setuptools-scm 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "makefun"; 10 version = "1.15.1"; 11 12 src = fetchPypi { 13 inherit pname version; 14 hash = "sha256-QLDxGLbe0NjXjHjx62ebi2skYuPBs+BfsbLajNRrSKU="; 15 }; 16 17 postPatch = '' 18 substituteInPlace setup.cfg \ 19 --replace "pytest-runner" "" 20 ''; 21 22 nativeBuildInputs = [ 23 setuptools-scm 24 ]; 25 26 nativeCheckInputs = [ 27 pytestCheckHook 28 ]; 29 30 pythonImportsCheck = [ "makefun" ]; 31 32 meta = with lib; { 33 homepage = "https://github.com/smarie/python-makefun"; 34 description = "Small library to dynamically create python functions"; 35 license = licenses.bsd2; 36 maintainers = with maintainers; [ veehaitch ]; 37 }; 38}