at master 845 B view raw
1{ 2 lib, 3 fetchPypi, 4 buildPythonPackage, 5 6 # build-system 7 setuptools, 8 setuptools-scm, 9 10 # tests 11 pytest7CheckHook, 12}: 13 14buildPythonPackage rec { 15 pname = "makefun"; 16 version = "1.16.0"; 17 pyproject = true; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-4UYBgxVwv/H21+aIKLzTDS9YVvJLrV3gzLIpIc7ryUc="; 22 }; 23 24 postPatch = '' 25 substituteInPlace pyproject.toml \ 26 --replace-fail '"setuptools>=39.2,<72"' '"setuptools"' 27 ''; 28 29 build-system = [ 30 setuptools 31 setuptools-scm 32 ]; 33 34 nativeCheckInputs = [ pytest7CheckHook ]; 35 36 pythonImportsCheck = [ "makefun" ]; 37 38 meta = with lib; { 39 homepage = "https://github.com/smarie/python-makefun"; 40 description = "Small library to dynamically create python functions"; 41 license = licenses.bsd2; 42 maintainers = with maintainers; [ veehaitch ]; 43 }; 44}