Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python buildPythonPackage: check and run correct test command
The default command for running tests is `python setup.py test`. Many packages use a test runner that needs to be invoked, e.g. `nosetests` or `py.test`. It would be nice if `buildPythonPackage` automatically determines which command to run. We can check in the `buildInputs` whether `nose` or `pytest` is included, and if so, do either 1) or 2) 1. Run the appropriate command, `nosetests` or `py.test`. 2. Apply a patch to enable `python setup.py test`. For [py.test](http://pytest.org/latest/goodpractises.html#integrating-with- setuptools-python-setup-py-test-pytest-runner) and [nose](http://nose.readthedocs.org/en/latest/api/commands.html) Option 2) could get complicated/messy and therefore I'm in favor of option 1). This commit implements option 1. --- Reference to NixOS#1819
- Loading branch information