python3Packages.makefun: fix build, enable tests

+12 -6
+12 -6
pkgs/development/python-modules/makefun/default.nix
··· 2 , fetchPypi 3 , buildPythonPackage 4 , setuptools-scm 5 }: 6 7 buildPythonPackage rec { ··· 13 sha256 = "4d0e90ca3fdbdeb6a4a0891e2da7d4b8e80386e19e6db91ce29b8aa5c876ecfe"; 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
··· 2 , fetchPypi 3 , buildPythonPackage 4 , setuptools-scm 5 + , pytestCheckHook 6 }: 7 8 buildPythonPackage rec { ··· 14 sha256 = "4d0e90ca3fdbdeb6a4a0891e2da7d4b8e80386e19e6db91ce29b8aa5c876ecfe"; 15 }; 16 17 + postPatch = '' 18 + substituteInPlace setup.cfg \ 19 + --replace "pytest-runner" "" 20 + ''; 21 22 + nativeBuildInputs = [ 23 + setuptools-scm 24 + ]; 25 + 26 + checkInputs = [ 27 + pytestCheckHook 28 + ]; 29 30 pythonImportsCheck = [ "makefun" ]; 31