python3Packages.makefun: fix build, enable tests

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