diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2019-07-15 13:48:07 -0400 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2019-07-17 10:02:03 +0200 |
commit | 52840a2557eb6f44e045039b72d1deae5940fbb0 (patch) | |
tree | c755800e1bab717d88da07942c5e37393dbdd0a6 | |
parent | 85e027d914875e4b963639f58d73770040345d5b (diff) | |
download | nixpkgs-52840a2557eb6f44e045039b72d1deae5940fbb0.tar nixpkgs-52840a2557eb6f44e045039b72d1deae5940fbb0.tar.gz nixpkgs-52840a2557eb6f44e045039b72d1deae5940fbb0.tar.bz2 nixpkgs-52840a2557eb6f44e045039b72d1deae5940fbb0.tar.lz nixpkgs-52840a2557eb6f44e045039b72d1deae5940fbb0.tar.xz nixpkgs-52840a2557eb6f44e045039b72d1deae5940fbb0.tar.zst nixpkgs-52840a2557eb6f44e045039b72d1deae5940fbb0.zip |
pythonPackages.sunpy: init at 1.0.2
-rw-r--r-- | pkgs/development/python-modules/sunpy/default.nix | 80 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 82 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/sunpy/default.nix b/pkgs/development/python-modules/sunpy/default.nix new file mode 100644 index 00000000000..252eafec465 --- /dev/null +++ b/pkgs/development/python-modules/sunpy/default.nix @@ -0,0 +1,80 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, numpy +, scipy +, matplotlib +, pandas +, astropy +, parfive +, pythonOlder +, sqlalchemy +, scikitimage +, glymur +, beautifulsoup4 +, drms +, python-dateutil +, zeep +, tqdm +, asdf +, astropy-helpers +, hypothesis +, pytest-astropy +, pytestcov +, pytest-mock +}: + +buildPythonPackage rec { + pname = "sunpy"; + version = "1.0.2"; + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "sunpy"; + repo = pname; + rev = "v${version}"; + sha256 = "0dmfzxxsjjax9wf2ljyl4z07pxbshrj828zi5qnsa9rgk4148q9x"; + }; + + propagatedBuildInputs = [ + numpy + scipy + matplotlib + pandas + astropy + astropy-helpers + parfive + sqlalchemy + scikitimage + glymur + beautifulsoup4 + drms + python-dateutil + zeep + tqdm + asdf + ]; + + checkInputs = [ + hypothesis + pytest-astropy + pytestcov + pytest-mock + ]; + + preBuild = '' + export SETUPTOOLS_SCM_PRETEND_VERSION="${version}" + export HOME=$(mktemp -d) + ''; + + checkPhase = '' + pytest sunpy -k "not test_rotation" + ''; + + meta = with lib; { + description = "SunPy: Python for Solar Physics"; + homepage = https://sunpy.org; + license = licenses.bsd2; + maintainers = [ maintainers.costrouc ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 30058901ed1..cc034d701c4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2613,6 +2613,8 @@ in { subliminal = callPackage ../development/python-modules/subliminal {}; + sunpy = callPackage ../development/python-modules/sunpy { }; + hyperlink = callPackage ../development/python-modules/hyperlink {}; zope_copy = callPackage ../development/python-modules/zope_copy {}; |