Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 32 lines 860 B view raw
1{ lib 2, fetchPypi 3, buildPythonPackage 4, setuptools_scm 5}: 6 7buildPythonPackage rec { 8 pname = "makefun"; 9 version = "1.11.2"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "sha256-2qNQpILtWLVyREPGUUMhkem5ewyDdDh50JExccaigIU="; 14 }; 15 16 nativeBuildInputs = [ setuptools_scm ]; 17 18 # Disabling tests for now due to various (transitive) dependencies on modules 19 # from @smarie which are, as of yet, not part of nixpkgs. Also introduces 20 # a tricky dependency: makefun tests depend on pytest-cases, installing 21 # pytest-cases depends on makefun. 22 doCheck = false; 23 24 pythonImportsCheck = [ "makefun" ]; 25 26 meta = with lib; { 27 homepage = "https://github.com/smarie/python-makefun"; 28 description = "Small library to dynamically create python functions"; 29 license = licenses.bsd2; 30 maintainers = with maintainers; [ veehaitch ]; 31 }; 32}