mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-27 22:44:56 +00:00
Merge pull request #175780 from fabaff/aplpy-older
python310Packages.aplpy: disable on older Python releases
This commit is contained in:
commit
4030563aa7
@ -1,20 +1,21 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
|
||||||
, fetchPypi
|
|
||||||
, fetchpatch
|
|
||||||
, numpy
|
|
||||||
, astropy
|
, astropy
|
||||||
, astropy-helpers
|
, astropy-helpers
|
||||||
|
, buildPythonPackage
|
||||||
|
, cython
|
||||||
|
, fetchpatch
|
||||||
|
, fetchPypi
|
||||||
, matplotlib
|
, matplotlib
|
||||||
, reproject
|
, numpy
|
||||||
|
, pillow
|
||||||
, pyavm
|
, pyavm
|
||||||
, pyregion
|
, pyregion
|
||||||
, pillow
|
|
||||||
, scikitimage
|
|
||||||
, cython
|
|
||||||
, shapely
|
|
||||||
, pytest
|
|
||||||
, pytest-astropy
|
, pytest-astropy
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, reproject
|
||||||
|
, scikitimage
|
||||||
|
, shapely
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -22,36 +23,48 @@ buildPythonPackage rec {
|
|||||||
version = "2.1.0";
|
version = "2.1.0";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
pname = "aplpy";
|
pname = "aplpy";
|
||||||
inherit version;
|
inherit version;
|
||||||
sha256 = "sha256-KCdmBwQWt7IfHsjq7pWlbSISEpfQZDyt+SQSTDaUCV4=";
|
hash = "sha256-KCdmBwQWt7IfHsjq7pWlbSISEpfQZDyt+SQSTDaUCV4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
astropy-helpers
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
numpy
|
|
||||||
cython
|
|
||||||
astropy
|
astropy
|
||||||
|
cython
|
||||||
matplotlib
|
matplotlib
|
||||||
reproject
|
numpy
|
||||||
|
pillow
|
||||||
pyavm
|
pyavm
|
||||||
pyregion
|
pyregion
|
||||||
pillow
|
reproject
|
||||||
scikitimage
|
scikitimage
|
||||||
shapely
|
shapely
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ astropy-helpers ];
|
checkInputs = [
|
||||||
checkInputs = [ pytest pytest-astropy ];
|
pytest-astropy
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
preCheck = ''
|
||||||
OPENMP_EXPECTED=0 pytest aplpy
|
OPENMP_EXPECTED=0
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"aplpy"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "The Astronomical Plotting Library in Python";
|
description = "The Astronomical Plotting Library in Python";
|
||||||
homepage = "http://aplpy.github.io";
|
homepage = "http://aplpy.github.io";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ maintainers.smaret ];
|
maintainers = with maintainers; [ smaret ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user