2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, astropy
|
|
|
|
, astropy-helpers
|
2022-06-16 17:23:12 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, cython
|
|
|
|
, fetchpatch
|
|
|
|
, fetchPypi
|
2020-04-24 23:36:52 +00:00
|
|
|
, matplotlib
|
2022-06-16 17:23:12 +00:00
|
|
|
, numpy
|
|
|
|
, pillow
|
2020-04-24 23:36:52 +00:00
|
|
|
, pyavm
|
|
|
|
, pyregion
|
2022-06-16 17:23:12 +00:00
|
|
|
, pytest-astropy
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, reproject
|
2020-04-24 23:36:52 +00:00
|
|
|
, scikitimage
|
|
|
|
, shapely
|
|
|
|
}:
|
|
|
|
|
|
|
|
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
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
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-06-16 17:23:12 +00:00
|
|
|
hash = "sha256-KCdmBwQWt7IfHsjq7pWlbSISEpfQZDyt+SQSTDaUCV4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
astropy-helpers
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
astropy
|
2022-06-16 17:23:12 +00:00
|
|
|
cython
|
2020-04-24 23:36:52 +00:00
|
|
|
matplotlib
|
2022-06-16 17:23:12 +00:00
|
|
|
numpy
|
|
|
|
pillow
|
2020-04-24 23:36:52 +00:00
|
|
|
pyavm
|
|
|
|
pyregion
|
2022-06-16 17:23:12 +00:00
|
|
|
reproject
|
2020-04-24 23:36:52 +00:00
|
|
|
scikitimage
|
|
|
|
shapely
|
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytest-astropy
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
preCheck = ''
|
|
|
|
OPENMP_EXPECTED=0
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"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;
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ smaret ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|