depot/third_party/nixpkgs/pkgs/development/python-modules/sunpy/default.nix
Default email ffc78d3539 Project import generated by Copybara.
GitOrigin-RevId: d9dba88d08a9cdf483c3d45f0d7220cf97a4ce64
2021-01-05 19:05:55 +02:00

84 lines
1.3 KiB
Nix

{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, asdf
, astropy
, 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.0.6";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "109flghca42yhsm2w5xicqhyx1mc8c3vlwvadbn65fz3lhysqj67";
};
nativeBuildInputs = [
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 ];
};
}