python3Packages.sunpy: 1.0.6 -> 2.0.6
This commit is contained in:
parent
343015526e
commit
0cdd25eba3
|
@ -1,12 +1,12 @@
|
||||||
{ stdenv
|
{ stdenv
|
||||||
, lib
|
, lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchPypi
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
|
||||||
, asdf
|
, asdf
|
||||||
, astropy
|
, astropy
|
||||||
, astropy-helpers
|
, astropy-helpers
|
||||||
|
, astropy-extension-helpers
|
||||||
, beautifulsoup4
|
, beautifulsoup4
|
||||||
, drms
|
, drms
|
||||||
, glymur
|
, glymur
|
||||||
|
@ -29,16 +29,18 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "sunpy";
|
pname = "sunpy";
|
||||||
version = "1.0.6";
|
version = "2.0.6";
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchPypi {
|
||||||
owner = "sunpy";
|
inherit pname version;
|
||||||
repo = pname;
|
sha256 = "109flghca42yhsm2w5xicqhyx1mc8c3vlwvadbn65fz3lhysqj67";
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "0j2yfhfxgi95rig8cfp9lvszb7694gq90jvs0xrb472hwnzgh2sk";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
astropy-extension-helpers
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
numpy
|
numpy
|
||||||
scipy
|
scipy
|
||||||
|
@ -66,16 +68,11 @@ buildPythonPackage rec {
|
||||||
pytest-mock
|
pytest-mock
|
||||||
];
|
];
|
||||||
|
|
||||||
preBuild = ''
|
|
||||||
export SETUPTOOLS_SCM_PRETEND_VERSION="${version}"
|
|
||||||
export HOME=$(mktemp -d)
|
|
||||||
'';
|
|
||||||
|
|
||||||
# darwin has write permission issues
|
# darwin has write permission issues
|
||||||
doCheck = stdenv.isLinux;
|
doCheck = stdenv.isLinux;
|
||||||
# ignore documentation tests
|
# ignore documentation tests
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
pytest sunpy -k 'not rst'
|
PY_IGNORE_IMPORTMISMATCH=1 HOME=$(mktemp -d) pytest sunpy -k 'not rst'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in New Issue