Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchPypi, 4 buildPythonPackage, 5 6 # build-system 7 setuptools, 8 setuptools-scm, 9 10 # tests 11 pytestCheckHook, 12}: 13 14buildPythonPackage rec { 15 pname = "makefun"; 16 version = "1.15.4"; 17 pyproject = true; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-n5uZBOfDl3WTdKiPTFd4H7qypFjex430s+5ics2fsBA="; 22 }; 23 24 postPatch = '' 25 substituteInPlace setup.cfg \ 26 --replace "pytest-runner" "" 27 ''; 28 29 nativeBuildInputs = [ 30 setuptools 31 setuptools-scm 32 ]; 33 34 nativeCheckInputs = [ pytestCheckHook ]; 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}