My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/aplpy/default.nix

57 lines
939 B

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