mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 19:51:17 +00:00
Merge pull request #135449 from SuperSandro2000/sunpy
This commit is contained in:
commit
f154a83bb2
|
@ -20,7 +20,6 @@
|
|||
, pytestCheckHook
|
||||
, pytest-astropy
|
||||
, pytest-mock
|
||||
, pytest-cov
|
||||
, python-dateutil
|
||||
, scikitimage
|
||||
, scipy
|
||||
|
@ -70,22 +69,30 @@ buildPythonPackage rec {
|
|||
hypothesis
|
||||
pytestCheckHook
|
||||
pytest-astropy
|
||||
pytest-cov
|
||||
pytest-mock
|
||||
];
|
||||
|
||||
# darwin has write permission issues
|
||||
doCheck = stdenv.isLinux;
|
||||
|
||||
# ignore documentation tests and ignore tests with schema issues
|
||||
checkPhase = ''
|
||||
PY_IGNORE_IMPORTMISMATCH=1 HOME=$(mktemp -d) pytest sunpy -k 'not rst' \
|
||||
--deselect=sunpy/tests/tests/test_self_test.py::test_main_nonexisting_module \
|
||||
--deselect=sunpy/tests/tests/test_self_test.py::test_main_stdlib_module \
|
||||
--ignore=sunpy/io/special/asdf/schemas/sunpy.org/sunpy/coordinates/frames/heliocentric-1.0.0.yaml \
|
||||
--ignore=sunpy/io/special/asdf/schemas/sunpy.org/sunpy/coordinates/frames/helioprojective-1.0.0.yaml
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
"rst"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
"sunpy/io/special/asdf/schemas/sunpy.org/sunpy/coordinates/frames/helioprojective-1.0.0.yaml"
|
||||
"sunpy/io/special/asdf/schemas/sunpy.org/sunpy/coordinates/frames/heliocentric-1.0.0.yaml"
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"--deselect=sunpy/tests/tests/test_self_test.py::test_main_nonexisting_module"
|
||||
"--deselect=sunpy/tests/tests/test_self_test.py::test_main_stdlib_module"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "SunPy: Python for Solar Physics";
|
||||
homepage = "https://sunpy.org";
|
||||
|
|
Loading…
Reference in a new issue