2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-01-05 17:05:55 +00:00
|
|
|
, fetchpatch
|
2020-04-24 23:36:52 +00:00
|
|
|
, numpy
|
|
|
|
, astropy
|
|
|
|
, astropy-helpers
|
|
|
|
, matplotlib
|
|
|
|
, reproject
|
|
|
|
, pyavm
|
|
|
|
, pyregion
|
|
|
|
, pillow
|
|
|
|
, scikitimage
|
2022-04-15 01:41:22 +00:00
|
|
|
, cython
|
2020-04-24 23:36:52 +00:00
|
|
|
, shapely
|
|
|
|
, pytest
|
|
|
|
, pytest-astropy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aplpy";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "2.1.0";
|
2021-01-05 17:05:55 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-04-15 01:41:22 +00:00
|
|
|
pname = "aplpy";
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit version;
|
2022-04-15 01:41:22 +00:00
|
|
|
sha256 = "sha256-KCdmBwQWt7IfHsjq7pWlbSISEpfQZDyt+SQSTDaUCV4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
2022-04-15 01:41:22 +00:00
|
|
|
cython
|
2020-04-24 23:36:52 +00:00
|
|
|
astropy
|
|
|
|
matplotlib
|
|
|
|
reproject
|
|
|
|
pyavm
|
|
|
|
pyregion
|
|
|
|
pillow
|
|
|
|
scikitimage
|
|
|
|
shapely
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ astropy-helpers ];
|
|
|
|
checkInputs = [ pytest pytest-astropy ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2021-01-05 17:05:55 +00:00
|
|
|
OPENMP_EXPECTED=0 pytest aplpy
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "The Astronomical Plotting Library in Python";
|
|
|
|
homepage = "http://aplpy.github.io";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.smaret ];
|
|
|
|
};
|
|
|
|
}
|