doc: python: Run hooks in checkPhase

Changed files
+15 -1
doc
languages-frameworks
+15 -1
doc/languages-frameworks/python.section.md
···
```
checkInputs = [ pytest ];
-
checkPhase = "pytest";
+
checkPhase = ''
+
runHook preCheck
+
+
pytest
+
+
runHook postCheck
+
'';
```
However, many repositories' test suites do not translate well to nix's build
···
checkInputs = [ pytest ];
# avoid tests which need additional data or touch network
checkPhase = ''
+
runHook preCheck
+
pytest tests/ --ignore=tests/integration -k 'not download and not update'
+
+
runHook postCheck
'';
```
···
# assumes the tests are located in tests
checkInputs = [ pytest ];
checkPhase = ''
+
runHook preCheck
+
py.test -k 'not function_name and not other_function' tests
+
+
runHook postCheck
'';
```