depot/third_party/nixpkgs/pkgs/development/python-modules/aplpy/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

70 lines
1 KiB
Nix

{ lib
, astropy
, astropy-helpers
, buildPythonPackage
, cython
, fetchpatch
, fetchPypi
, matplotlib
, numpy
, pillow
, pyavm
, pyregion
, pytest-astropy
, pytestCheckHook
, pythonOlder
, reproject
, scikitimage
, shapely
}:
buildPythonPackage rec {
pname = "aplpy";
version = "2.1.0";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchPypi {
pname = "aplpy";
inherit version;
hash = "sha256-KCdmBwQWt7IfHsjq7pWlbSISEpfQZDyt+SQSTDaUCV4=";
};
nativeBuildInputs = [
astropy-helpers
];
propagatedBuildInputs = [
astropy
cython
matplotlib
numpy
pillow
pyavm
pyregion
reproject
scikitimage
shapely
];
checkInputs = [
pytest-astropy
pytestCheckHook
];
preCheck = ''
OPENMP_EXPECTED=0
'';
pythonImportsCheck = [
"aplpy"
];
meta = with lib; {
description = "The Astronomical Plotting Library in Python";
homepage = "http://aplpy.github.io";
license = licenses.mit;
maintainers = with maintainers; [ smaret ];
};
}