depot/third_party/nixpkgs/pkgs/development/python-modules/sunpy/default.nix
Default email 9405df4a82 Project import generated by Copybara.
GitOrigin-RevId: 8e4fe32876ca15e3d5eb3ecd3ca0b224417f5f17
2021-04-26 15:14:03 -04:00

86 lines
1.4 KiB
Nix

{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, asdf
, astropy
, setuptools-scm
, astropy-helpers
, astropy-extension-helpers
, beautifulsoup4
, drms
, glymur
, hypothesis
, matplotlib
, numpy
, pandas
, parfive
, pytest-astropy
, pytest-mock
, pytestcov
, python-dateutil
, scikitimage
, scipy
, sqlalchemy
, towncrier
, tqdm
, zeep
}:
buildPythonPackage rec {
pname = "sunpy";
version = "2.1.2";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "8bbc440e606a4f3fcbd1441150d81da6f0208adace9dc06f6afd2c9cb7c08908";
};
nativeBuildInputs = [
setuptools-scm
astropy-extension-helpers
];
propagatedBuildInputs = [
numpy
scipy
matplotlib
pandas
astropy
astropy-helpers
parfive
sqlalchemy
scikitimage
towncrier
glymur
beautifulsoup4
drms
python-dateutil
zeep
tqdm
asdf
];
checkInputs = [
hypothesis
pytest-astropy
pytestcov
pytest-mock
];
# darwin has write permission issues
doCheck = stdenv.isLinux;
# ignore documentation tests
checkPhase = ''
PY_IGNORE_IMPORTMISMATCH=1 HOME=$(mktemp -d) pytest sunpy -k 'not rst'
'';
meta = with lib; {
description = "SunPy: Python for Solar Physics";
homepage = "https://sunpy.org";
license = licenses.bsd2;
maintainers = [ maintainers.costrouc ];
};
}